vault/ui/app/adapters/clients/config.js
Hamid Ghaf e55c18ed12
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

24 lines
480 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Application from '../application';
export default Application.extend({
queryRecord() {
return this.ajax(this.urlForQuery(), 'GET').then((resp) => {
resp.id = resp.request_id;
return resp;
});
},
urlForUpdateRecord() {
return this.buildURL() + '/internal/counters/config';
},
urlForQuery() {
return this.buildURL() + '/internal/counters/config';
},
});