mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 01:42:06 -04:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
29 lines
622 B
JavaScript
29 lines
622 B
JavaScript
/**
|
|
* Copyright IBM Corp. 2016, 2025
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import ApplicationAdapter from './application';
|
|
|
|
export default ApplicationAdapter.extend({
|
|
pathForType() {
|
|
return 'control-group';
|
|
},
|
|
|
|
async findRecord(store, type, id) {
|
|
const baseUrl = this.buildURL(type.modelName);
|
|
return this.ajax(`${baseUrl}/request`, 'POST', {
|
|
data: {
|
|
accessor: id,
|
|
},
|
|
}).then((response) => {
|
|
response.id = id;
|
|
return response;
|
|
});
|
|
},
|
|
|
|
urlForUpdateRecord(id, modelName) {
|
|
const base = this.buildURL(modelName);
|
|
return `${base}/authorize`;
|
|
},
|
|
});
|