feat: Add custom attribute table (#2929)
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
/* 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();
|
||||
|
||||
Reference in New Issue
Block a user