Hamid Ghaf e55c18ed12
adding copyright header (#19555)
* adding copyright header

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

17 lines
372 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import PkiKeysIndexRoute from './index';
export default class PkiKeyRoute extends PkiKeysIndexRoute {
model() {
const { key_id } = this.paramsFor('keys/key');
return this.store.queryRecord('pki/key', {
backend: this.secretMountPath.currentPath,
id: key_id,
});
}
}