This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
router.map.js
48 lines (46 loc) · 1.66 KB
/
router.map.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
import EmberRouter from '@ember/routing/router';
import config from '@fleetbase/console/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route('auth', function () {
this.route('login', { path: '/' });
this.route('forgot-password');
this.route('reset-password');
});
this.route('onboard', function () {
this.route('verify-email');
});
this.route('invite', { path: 'join' }, function () {
this.route('for-driver', { path: '/fleet/:public_id' });
this.route('for-user', { path: '/org/:public_id' });
});
this.route('console', { path: '/' }, function () {
this.route('home', { path: '/' });
this.route('extensions');
this.route('account', function () {
this.route('virtual', { path: '/:slug/:view' });
});
this.route('settings', function () {
this.route('virtual', { path: '/:slug/:view' });
});
this.route('virtual', { path: '/:slug/:view' });
this.route('admin', function () {
this.route('config', function () {
this.route('database');
this.route('cache');
this.route('filesystem');
this.route('mail');
this.route('notification-channels');
this.route('queue');
this.route('services');
this.route('socket');
});
this.route('branding');
this.route('virtual', { path: '/:slug/:view' });
});
});
this.route('install');
});