mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
19 lines
395 B
JavaScript
19 lines
395 B
JavaScript
/* global axios */
|
|
import ApiClient from '../ApiClient';
|
|
|
|
class PortalsAPI extends ApiClient {
|
|
constructor() {
|
|
super('portals', { accountScoped: true });
|
|
}
|
|
|
|
updatePortal({ portalSlug, portalObj }) {
|
|
return axios.patch(`${this.url}/${portalSlug}`, portalObj);
|
|
}
|
|
|
|
deletePortal(portalSlug) {
|
|
return axios.delete(`${this.url}/${portalSlug}`);
|
|
}
|
|
}
|
|
|
|
export default PortalsAPI;
|