open-vault/ui/app/adapters/metrics/config.js
Chelsea Shaw 000541f178
Ui/pricing metric config (#10102)
* Fix routing on metrics

* Show current metrics config

* Ability to edit metrics config
2020-10-08 10:23:59 -05:00

19 lines
400 B
JavaScript

import Application from '../application';
export default Application.extend({
queryRecord() {
return this.ajax(this.urlForQuery(), 'GET').then(resp => {
resp.id = resp.request_id;
return resp;
});
},
urlForUpdateRecord() {
return this.buildURL() + '/internal/counters/config';
},
urlForQuery() {
return this.buildURL() + '/internal/counters/config';
},
});