-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathrouter.js
67 lines (65 loc) · 2.21 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
64
65
66
67
import EmberRouter from '@ember/routing/router';
import config from './config/environment';
import googlePageview from './mixins/google-pageview';
import EmberRouterScroll from 'ember-router-scroll';
export default class Router extends EmberRouterScroll {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function() {
this.route('courses', function() {
this.route('id', {path: '/:courseId'});
});
this.route('classroom', function() {
this.route('timeline', {path: '/course/:courseId/run/:runId'}, function () {
this.route('overview');
this.route('contents');
this.route('announcements');
this.route('doubts');
this.route('library');
})
});
this.route('attempt', {path: '/player/:runAttemptId'}, function() {
this.route('old-content', {path: '/content/:contentId'});
this.route('content', {path: '/content/:sectionId/:contentId'}, function() {
this.route('quiz', {path: '/quiz/:quizId'} ,function() {
this.route('attempt', {path: '/s/:quizAttemptId'}, function() {
this.route('done');
});
this.route('view', function() {
this.route('quiz-attempt', {path: '/v/:viewQuizAttemptId'});
});
this.route('loading');
});
this.route('code-challenge');
this.route('lecture');
this.route('document');
this.route('video');
this.route('csv');
this.route('webinar');
});
});
this.route('error');
this.route('payment_webhook');
this.route('notifications', function() {});
this.route('otp');
this.route('payment-webhook-loading');
this.route('certificate', {path: '/certificates/:licenseKey'});
this.route('nagarro', function() {});
this.mount('hiring-blocks', {path: '/jobs'});
this.route('login');
this.route('feedback', function() {
this.route('doubt', {path: '/d/:doubt_id'});
this.route('thanks');
});
this.route('inbox');
this.route('404', { path: '/*:' });
this.mount('cricket-cup', {path: '/cricket_cup'});
this.route('dashboard');
this.route('tracks', function() {
this.route('id', {path: '/:slug'});
});
this.route('spin', {path: '/valentines'}, function() {});
this.route('login-blocker');
this.route('subscribe');
});