open-vault/ui/app/adapters/kmip/config.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

20 lines
560 B
JavaScript

import BaseAdapter from './base';
export default BaseAdapter.extend({
_url(id, modelName, snapshot) {
const name = this.pathForType(modelName);
// id here will be the mount path,
// modelName will be config so we want to transpose the first two call args
return this.buildURL(id, name, snapshot);
},
urlForFindRecord() {
return this._url(...arguments);
},
urlForCreateRecord(modelName, snapshot) {
return this._url(snapshot.id, modelName, snapshot);
},
urlForUpdateRecord() {
return this._url(...arguments);
},
});