frontend/src/api/pusher.js
timerzz 1cfc9e0841
All checks were successful
Build image / build (push) Successful in 10m51s
feat 可以添加邮箱推送
2024-05-21 15:02:30 +08:00

15 lines
293 B
JavaScript

import {mande} from "mande";
const pushers = mande('/api/v1/pushers')
export const ListPushers = (query) => {
return pushers.get({query:query})
}
export const AddPusher = (opt)=>{
return pushers.post(opt)
}
export const ListPusherOptions = ()=>{
return pushers.get('options')
}