ui/lib/global-admin/addon/routes.js

40 lines
1.0 KiB
JavaScript

import buildRoutes from 'ember-engines/routes';
export default buildRoutes(function() {
this.route('accounts', {path: '/accounts'}, function() {
this.route('index', {path: '/'});
this.route('new', {path: '/add'});
});
this.route('roles', {path: '/roles'}, function() {
this.route('index', {path: '/'});
this.route('edit', {path: '/:role_id'});
this.route('new', {path: '/add'});
});
this.route('policies', {path: '/policies'}, function() {
this.route('index', {path: '/'});
this.route('edit', {path: '/:policy_id'});
this.route('new', {path: '/add'});
});
this.route('audit-logs');
this.route('catalog');
this.route('settings', function() {
this.route('auth', {path: '/access'}, function() {
this.route('activedirectory');
this.route('azuread');
this.route('github');
this.route('openldap');
this.route('localauth', {path: 'local'});
this.route('shibboleth');
});
this.route('machine');
this.route('registration');
this.route('advanced');
});
});