2022-08-18 11:41:19 +00:00
|
|
|
/* global axios */
|
2022-07-27 06:54:43 +00:00
|
|
|
import ApiClient from '../ApiClient';
|
|
|
|
|
|
|
|
class PortalsAPI extends ApiClient {
|
|
|
|
constructor() {
|
|
|
|
super('portals', { accountScoped: true });
|
|
|
|
}
|
2022-08-18 11:41:19 +00:00
|
|
|
|
|
|
|
updatePortal({ portalSlug, params }) {
|
|
|
|
return axios.patch(`${this.url}/${portalSlug}`, params);
|
|
|
|
}
|
2022-07-27 06:54:43 +00:00
|
|
|
}
|
|
|
|
|
2022-08-04 09:41:29 +00:00
|
|
|
export default PortalsAPI;
|