2022-08-02 11:44:10 +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-02 11:44:10 +00:00
|
|
|
|
|
|
|
getArticles({ pageNumber, portalSlug, locale }) {
|
|
|
|
return axios.get(
|
|
|
|
`${this.url}/${portalSlug}/articles?page=${pageNumber}&locale=${locale}`
|
|
|
|
);
|
|
|
|
}
|
2022-07-27 06:54:43 +00:00
|
|
|
}
|
|
|
|
|
2022-08-04 09:41:29 +00:00
|
|
|
export default PortalsAPI;
|