14 lines
301 B
JavaScript
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;
|