24 lines
684 B
JavaScript
24 lines
684 B
JavaScript
import EmberRouter from '@ember/routing/router';
|
|
import config from './config/environment';
|
|
|
|
export default class Router extends EmberRouter {
|
|
location = config.locationType;
|
|
rootURL = config.rootURL;
|
|
}
|
|
|
|
Router.map(function () {
|
|
this.route('orgs', function () {
|
|
this.route('org', { path: ':org_id' }, function () {
|
|
this.route('projects', function () {
|
|
this.route('project', { path: ':project_id' }, function() {
|
|
this.route('host-catalogs', function() {
|
|
this.route('host-catalog', { path: ':host_catalog_id' }, function() {});
|
|
this.route('new');
|
|
});
|
|
});
|
|
this.route('new');
|
|
});
|
|
});
|
|
});
|
|
});
|