vault/ui/lib/ldap/addon/routes.js
claire bontempo 30d4e21e88
UI: LDAP Hierarchical roles (#28824)
* remove named path adapter extension, add subdirectory query logic to adapter

* add subdirectory route and logic to page::roles component

* fix overview page search select

* breadcrumbs

* update tests and mirage

* revert ss changes

* oops

* cleanup adapter, add _ for private methods

* add acceptance test

* remove type

* add changelog

* add ldap breadcrumb test

* VAULT-31905 link jira

* update breadcrumbs in Edit route

* rename type interfaces
2024-11-06 00:52:29 +00:00

34 lines
965 B
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');
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');
});