open-vault/ui/app/adapters/clients/config.js

19 lines
400 B
JavaScript
Raw Normal View History

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';
},
});