15 lines
312 B
JavaScript
15 lines
312 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;
|
|
});
|
|
},
|
|
|
|
urlForQuery() {
|
|
return this.buildURL() + '/internal/counters/requests';
|
|
},
|
|
});
|