2020-05-18 17:02:09 -04:00
|
|
|
import EmberRouter from '@ember/routing/router';
|
|
|
|
|
import config from './config/environment';
|
|
|
|
|
|
|
|
|
|
export default class Router extends EmberRouter {
|
|
|
|
|
location = config.locationType;
|
|
|
|
|
rootURL = config.rootURL;
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-19 18:10:39 -04:00
|
|
|
Router.map(function () {
|
2020-07-27 14:12:19 -04:00
|
|
|
this.route('scopes', function () {
|
|
|
|
|
this.route('scope', { path: ':scope_id' }, function () {
|
2020-07-29 15:47:23 -04:00
|
|
|
this.route('authenticate', function () {
|
|
|
|
|
this.route('method', { path: ':auth_method_id' });
|
2020-07-24 17:05:55 -04:00
|
|
|
});
|
2020-07-27 14:12:19 -04:00
|
|
|
this.route('users', function () {
|
|
|
|
|
this.route('user', { path: ':user_id' }, function () {});
|
2020-07-23 09:37:06 -04:00
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-07-27 16:42:02 -04:00
|
|
|
this.route('groups', function () {
|
|
|
|
|
this.route('group', { path: ':group_id' }, function () {});
|
|
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-07-27 16:51:41 -04:00
|
|
|
this.route('roles', function () {
|
2020-08-07 18:56:21 -04:00
|
|
|
this.route('role', { path: ':role_id' }, function () {
|
|
|
|
|
this.route('grants');
|
2020-08-12 13:41:23 -04:00
|
|
|
this.route('principals');
|
2020-08-07 18:56:21 -04:00
|
|
|
});
|
2020-07-27 16:51:41 -04:00
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-07-23 09:37:06 -04:00
|
|
|
this.route('projects', function() {
|
2020-07-28 11:06:06 -04:00
|
|
|
this.route('project', { path: ':project_id' }, function() {
|
|
|
|
|
this.route('host-catalogs', function() {
|
|
|
|
|
this.route('new');
|
|
|
|
|
this.route('host-catalog', { path: ':host_catalog_id' }, function() {});
|
|
|
|
|
});
|
|
|
|
|
});
|
2020-07-23 09:37:06 -04:00
|
|
|
this.route('new');
|
|
|
|
|
});
|
|
|
|
|
});
|
2020-07-22 17:16:20 -04:00
|
|
|
});
|
2020-05-19 18:10:39 -04:00
|
|
|
});
|