mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
* refactor crumbs * add subdirectory library route and hierarchical nav * update library breadcrumbs; * fix role popup menus * add getter to library model for full path * cleanup model getters * add changelog * add bug fix note * add transition after deleting * fix function definition * update adapter test * add test coverage * fix crumb typo
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import buildRoutes from 'ember-engines/routes';
|
|
|
|
export default buildRoutes(function () {
|
|
this.route('overview');
|
|
this.route('roles', function () {
|
|
this.route('create');
|
|
// wildcard route so we can traverse hierarchical roles i.e. prod/admin/my-role
|
|
this.route('subdirectory', { path: '/:type/subdirectory/*path_to_role' });
|
|
this.route('role', { path: '/:type/:name' }, function () {
|
|
this.route('details');
|
|
this.route('edit');
|
|
this.route('credentials');
|
|
});
|
|
});
|
|
this.route('libraries', function () {
|
|
this.route('create');
|
|
// wildcard route so we can traverse hierarchical libraries i.e. prod/admin/my-library
|
|
this.route('subdirectory', { path: '/subdirectory/*path_to_library' });
|
|
this.route('library', { path: '/:name' }, function () {
|
|
this.route('details', function () {
|
|
this.route('accounts');
|
|
this.route('configuration');
|
|
});
|
|
this.route('edit');
|
|
this.route('check-out');
|
|
});
|
|
});
|
|
this.route('configure');
|
|
this.route('configuration');
|
|
});
|