mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-02 12:31:08 +02:00
* use alias for router injection * update @router declarations in engine files * fix remaining pki router imports * dynamically set router based on owner * address replication routers * update markdown docs * use non-deprecated import for getOwner * revert out of scope changes * add transition-to test
18 lines
464 B
TypeScript
18 lines
464 B
TypeScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Route from '@ember/routing/route';
|
|
import { service } from '@ember/service';
|
|
|
|
import type RouterService from '@ember/routing/router-service';
|
|
|
|
export default class LdapLibraryRoute extends Route {
|
|
@service('app-router') declare readonly router: RouterService;
|
|
|
|
redirect() {
|
|
this.router.transitionTo('vault.cluster.secrets.backend.ldap.libraries.library.details');
|
|
}
|
|
}
|