mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
15 lines
313 B
JavaScript
15 lines
313 B
JavaScript
/* global axios */
|
|
import ApiClient from './ApiClient';
|
|
|
|
class CustomViewsAPI extends ApiClient {
|
|
constructor() {
|
|
super('custom_filters', { accountScoped: true });
|
|
}
|
|
|
|
getCustomViewsByFilterType(type) {
|
|
return axios.get(`${this.url}?filter_type=${type}`);
|
|
}
|
|
}
|
|
|
|
export default new CustomViewsAPI();
|