Chatwoot/app/javascript/dashboard/api/helpCenter/portals.js
2022-08-18 17:11:19 +05:30

14 lines
301 B
JavaScript

/* global axios */
import ApiClient from '../ApiClient';
class PortalsAPI extends ApiClient {
constructor() {
super('portals', { accountScoped: true });
}
updatePortal({ portalSlug, params }) {
return axios.patch(`${this.url}/${portalSlug}`, params);
}
}
export default PortalsAPI;