Chatwoot/app/javascript/dashboard/api/attributes.js
2021-09-08 09:37:58 +05:30

14 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();