open-vault/ui/lib/kmip/addon/routes.js
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

27 lines
891 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import buildRoutes from 'ember-engines/routes';
export default buildRoutes(function () {
this.route('configuration');
this.route('configure');
this.route('scopes', function () {
this.route('index', { path: '/' });
this.route('create');
});
this.route('scope', { path: '/scopes/:scope_name/roles' }, function () {
this.route('roles', { path: '/' });
this.route('roles.create', { path: '/create' });
});
this.route('role', { path: '/scopes/:scope_name/roles/:role_name' });
this.route('role.edit', { path: '/scopes/:scope_name/roles/:role_name/edit' });
this.route('credentials', { path: '/scopes/:scope_name/roles/:role_name/credentials' }, function () {
this.route('index', { path: '/' });
this.route('generate');
this.route('show', { path: '/:serial' });
});
});