open-vault/ui/lib/pki/addon/routes.js
claire bontempo a4270c7701
UI: Pki engine (redesign) routing changes (#17997)
* reroute pki config routes

* issuers routes

* refactor role routes

* add issuer/generate- routes

* update key routes

* refactor cert routes;

* template cleanup, update routes

* update component names with pki-

* update components in test files
2022-11-17 16:50:58 -08:00

49 lines
1.3 KiB
JavaScript

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