mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 04:27:02 +02:00
24 lines
480 B
JavaScript
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';
|
|
},
|
|
});
|