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 () {
|
|
|
|
|
this.route('orgs', function () {
|
|
|
|
|
this.route('org', { path: ':org_id' }, function () {
|
2020-05-21 10:59:42 -04:00
|
|
|
this.route('projects', function () {
|
2020-06-05 19:16:33 -04:00
|
|
|
this.route('project', { path: ':project_id' }, function() {
|
|
|
|
|
this.route('host-catalogs', function() {
|
|
|
|
|
this.route('host-catalog', { path: ':host_catalog_id' }, function() {});
|
2020-06-08 12:18:20 -04:00
|
|
|
this.route('new');
|
2020-06-05 19:16:33 -04:00
|
|
|
});
|
|
|
|
|
});
|
2020-05-21 10:59:42 -04:00
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-06-23 14:58:57 -04:00
|
|
|
|
|
|
|
|
this.route('users', function() {
|
|
|
|
|
this.route('user', { path: ':user_id' }, function() {});
|
|
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-06-24 16:11:59 -04:00
|
|
|
|
2020-06-22 21:39:38 -04:00
|
|
|
this.route('roles', function() {
|
|
|
|
|
this.route('role', { path: ':role_id' }, function() {});
|
|
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-06-24 16:52:03 -04:00
|
|
|
|
|
|
|
|
this.route('groups', function() {
|
2020-06-24 17:32:25 -04:00
|
|
|
this.route('group', { path: ':group_id' }, function() {});
|
2020-06-24 16:52:03 -04:00
|
|
|
this.route('new');
|
|
|
|
|
});
|
2020-05-19 18:10:39 -04:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|