2020-06-29 18:11:11 -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-11-09 10:51:11 -05:00
|
|
|
Router.map(function () {
|
2020-11-16 15:08:59 -05:00
|
|
|
this.route('scopes', function () {
|
|
|
|
|
this.route('scope', { path: ':scope_id' }, function () {
|
|
|
|
|
this.route('authenticate', function () {
|
2020-11-12 15:13:28 -05:00
|
|
|
this.route('method', { path: ':auth_method_id' });
|
|
|
|
|
});
|
2020-11-19 17:02:23 -05:00
|
|
|
this.route('projects', function () {
|
|
|
|
|
this.route('targets', function () {});
|
|
|
|
|
});
|
2020-11-10 16:48:15 -05:00
|
|
|
});
|
2020-11-09 17:42:27 -05:00
|
|
|
});
|
2020-11-13 15:20:26 -05:00
|
|
|
this.route('origin');
|
2020-11-09 10:51:11 -05:00
|
|
|
});
|