-
Notifications
You must be signed in to change notification settings - Fork 287
/
Copy pathrouter.js
43 lines (36 loc) · 1.49 KB
/
router.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import EmberRouter from '@ember/routing/router';
import config from 'ember-inspector/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route('app-detected', { path: '/', resetNamespace: true }, function () {
this.route('launch', { path: '/', resetNamespace: true });
this.route('component-tree', { resetNamespace: true });
this.route('route-tree', { resetNamespace: true });
this.route('data', { resetNamespace: true }, function () {
this.route('model-types', { resetNamespace: true }, function () {
this.route(
'model-type',
{ path: '/:type_id', resetNamespace: true },
function () {
this.route('records', { resetNamespace: true });
}
);
});
});
this.route('promise-tree', { resetNamespace: true });
this.route('info', { resetNamespace: true }, function () {
this.route('info-index', { path: '/', resetNamespace: true });
this.route('libraries', { resetNamespace: true });
this.route('app-config', { resetNamespace: true });
this.route('whats-new', { resetNamespace: true });
});
this.route('render-tree', { resetNamespace: true });
this.route('container-types', { resetNamespace: true }, function () {
this.route('container-type', { path: '/:type_id', resetNamespace: true });
});
this.route('deprecations', { resetNamespace: true });
});
});