mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
17 lines
365 B
JavaScript
17 lines
365 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 new PortalsAPI();
|