mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-19 21:51:09 +02:00
21 lines
460 B
JavaScript
21 lines
460 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import Route from '@ember/routing/route';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default class PkiKeyRoute extends Route {
|
|
@service secretMountPath;
|
|
@service store;
|
|
|
|
model() {
|
|
const { key_id } = this.paramsFor('keys/key');
|
|
return this.store.queryRecord('pki/key', {
|
|
backend: this.secretMountPath.currentPath,
|
|
id: key_id,
|
|
});
|
|
}
|
|
}
|