vault/ui/lib/pki/addon/routes.js
Angel Garbarino f305c4d4d1
Setup Routing for PKI tabs (#17054)
* setup PKI Ember engine

* clean up SecretListHeader and add documentation.

* move secret-list-header to addon folder

* move options-for-backend helper

* fix all for SecretListHeader to work

* use secretListHeaderTab by moving to adodn.

* add overview empty state

* clean up

* the tabs template and hbs route files

* routing for tidy and configure, still some questions for design

* wip

* clean up from merge and past pr

* add create index route

* clean up comment

* routing rework after discussion with Jordan

* cleanup

* remove app folder

* change names on js files for debugging
2022-09-09 18:01:47 -06:00

46 lines
1.2 KiB
JavaScript

import buildRoutes from 'ember-engines/routes';
export default buildRoutes(function () {
this.route('overview');
this.route('configuration', function () {
this.route('index', { path: '/' });
this.route('tidy');
this.route('create', function () {
this.route('index', { path: '/' });
this.route('import-ca');
this.route('generate-root');
this.route('generate-csr');
});
this.route('edit');
this.route('details');
});
this.route('roles', function () {
this.route('create');
this.route('role', { path: '/:name' }, function () {
this.route('details');
this.route('edit');
});
});
this.route('issuers', function () {
this.route('create');
this.route('issuer', { path: '/:name' }, function () {
this.route('details');
this.route('edit');
});
});
this.route('certificates', function () {
this.route('create');
this.route('certificate', { path: '/:name' }, function () {
this.route('details');
this.route('edit');
});
});
this.route('keys', function () {
this.route('create');
this.route('key', { path: '/:name' }, function () {
this.route('details');
this.route('edit');
});
});
});