-
Notifications
You must be signed in to change notification settings - Fork 0
/
router.js
63 lines (51 loc) · 1.67 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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('shared-processes', { path: 'gedeelde-processen' }, function () {
this.route('index', { path: '' });
});
this.route('process-steps', { path: 'processtappen' }, function () {
this.route('index', { path: '' });
});
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');
});