-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrouter.js
More file actions
89 lines (74 loc) · 2.4 KB
/
router.js
File metadata and controls
89 lines (74 loc) · 2.4 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import EmberRouter from '@ember/routing/router';
import ENV from 'frontend-openproceshuis/config/environment';
export default class Router extends EmberRouter {
location = ENV.locationType;
rootURL = ENV.rootURL;
}
Router.map(function () {
if (
ENV.mockLogin.disabled === '{{DISABLE_MOCK_LOGIN}}' ||
ENV.mockLogin.disabled === 'false' ||
!ENV.mockLogin.disabled
)
this.route('mock-login');
this.route('switch-login');
this.route('auth', { path: '/authorization' }, function () {
this.route('callback');
this.route('callback-error');
this.route('login');
this.route('logout');
this.route('switch');
});
this.route('impersonate');
this.route('index', { path: '' });
this.route('processes', { path: 'processen' }, function () {
this.route('process', { path: '/:id/' }, function () {
this.route('index', { path: '' });
this.route('diagrams', { path: 'diagrammen' });
});
});
// diagram-list-items route
this.route('diagrams', function () {
this.route('diagram', { path: '/:id/' }, function () {
this.route('index', { path: '' });
});
});
this.route('shared-processes', { path: 'gedeelde-processen' }, function () {
this.route('process', { path: '/:id/' }, function () {
this.route('index', { path: '' });
this.route('diagrams', { path: 'diagrammen' });
});
});
this.route(
'my-local-government',
{ path: 'mijn-lokaal-bestuur' },
function () {
this.route('process', { path: '/:id/' }, function () {
this.route('index', { path: '' });
this.route('diagrams', { path: 'diagrammen' });
});
},
);
this.route('inventory', { path: 'inventaris' }, function () {
this.route('admin');
});
this.route('information-assets', { path: 'informatie-assets' }, function () {
this.route('edit', { path: '/:id' });
});
this.route('legal', { path: '/legaal' }, function () {
this.route('disclaimer');
this.route('cookiestatement', { path: '/cookieverklaring' });
this.route('accessibilitystatement', {
path: '/toegankelijkheidsverklaring',
});
});
this.route('reporting', { path: '/rapportering' });
this.route('unauthorized', { path: 'niet-toegestaan' });
this.route('sparql');
this.route('route-not-found', {
path: '/*wildcard',
});
this.route('accessibility-statement');
this.route('cookie-notice');
this.route('disclaimer');
});