52fe56ec87
* adds prefer-const to eslint config and runs fixer * reverts unintended change
15 lines
362 B
JavaScript
15 lines
362 B
JavaScript
import ApplicationAdapter from './application';
|
|
|
|
export default ApplicationAdapter.extend({
|
|
getStatusUrl(mode) {
|
|
return this.buildURL() + `/replication/${mode}/status`;
|
|
},
|
|
|
|
fetchStatus(mode) {
|
|
const url = this.getStatusUrl(mode);
|
|
return this.ajax(url, 'GET', { unauthenticated: true }).then((resp) => {
|
|
return resp.data;
|
|
});
|
|
},
|
|
});
|