open-vault/ui/app/adapters/replication-mode.js
Jordan Reimer 52fe56ec87
Eslint prefer-const (#17864)
* adds prefer-const to eslint config and runs fixer

* reverts unintended change
2022-11-09 15:15:31 -08:00

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