mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
15 lines
327 B
JavaScript
15 lines
327 B
JavaScript
/* global axios */
|
|
import ApiClient from './ApiClient';
|
|
|
|
class AttributeAPI extends ApiClient {
|
|
constructor() {
|
|
super('custom_attribute_definitions', { accountScoped: true });
|
|
}
|
|
|
|
getAttributesByModel(modelId) {
|
|
return axios.get(`${this.url}?attribute_model=${modelId}`);
|
|
}
|
|
}
|
|
|
|
export default new AttributeAPI();
|