Chatwoot/app/javascript/dashboard/api/helpCenter/portals.js
2022-08-04 15:11:29 +05:30

16 lines
359 B
JavaScript

/* global axios */
import ApiClient from '../ApiClient';
class PortalsAPI extends ApiClient {
constructor() {
super('portals', { accountScoped: true });
}
getArticles({ pageNumber, portalSlug, locale }) {
return axios.get(
`${this.url}/${portalSlug}/articles?page=${pageNumber}&locale=${locale}`
);
}
}
export default PortalsAPI;