-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrouter.js
50 lines (47 loc) · 1.61 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
import EmberRouter from '@embroider/router';
import config from 'frontend-gelinkt-notuleren-publicatie/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route(
'bestuurseenheid',
{
path: '/:bestuurseenheid_naam/:bestuurseenheid_classificatie_code_label',
},
function () {
this.route('reglementen', function () {
this.route('reglement', { path: '/:uittreksel_id' });
});
this.route('zittingen', function () {
this.route('zitting', { path: '/:zitting_id' }, function () {
this.route('agenda', function () {
this.route('raw');
});
this.route('besluitenlijst', function () {});
this.route('notulen', function () {});
this.route('uittreksels', function () {
this.route('index', { path: '/' });
this.route('detail', { path: '/:uittreksel_id' }, function () {
this.route('raw');
});
});
});
});
// Route created for backwards compatibility, redirects to `bestuurseenheid.zittingen.zitting`
this.route('zitting', { path: '/:zitting_id' }, function () {
this.route('index', { path: '/' });
this.route('wildcard', { path: '/*path' });
});
}
);
this.route('contact');
this.route('legaal', function () {
this.route('disclaimer');
this.route('cookieverklaring');
this.route('toegankelijkheidsverklaring');
});
this.route('sparql');
this.route('route-not-found', { path: '/404' });
});