15 lines
293 B
JavaScript
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')
|
|
} |