Ensure top-level scopes route within ui/admin and ui/desktop are exactly the same in preparation for future refactor. feat: Add projects/targets route chore: yarn:format output in ui/desktop test: Add basic acceptance tests for projects and targets
22 lines
589 B
JavaScript
22 lines
589 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('scopes', function () {
|
|
this.route('scope', { path: ':scope_id' }, function () {
|
|
this.route('authenticate', function () {
|
|
this.route('method', { path: ':auth_method_id' });
|
|
});
|
|
this.route('projects', function () {
|
|
this.route('targets', function () {});
|
|
});
|
|
});
|
|
});
|
|
this.route('origin');
|
|
});
|