-
-
Notifications
You must be signed in to change notification settings - Fork 202
/
Copy pathrouter.js
38 lines (36 loc) · 1013 Bytes
/
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
import EmberRouter from "@ember/routing/router";
export default EmberRouter.extend().map(function() {
this.route( "watching" );
this.route( "search" );
this.route( "games", function() {
this.route( "game", { path: "/:game_id" } );
});
this.route( "streams" );
this.route( "channel", { path: "/channel/:user_id" }, function() {
this.route( "teams" );
this.route( "settings" );
});
this.route( "user", function() {
this.route( "auth" );
this.route( "followedStreams" );
this.route( "followedChannels" );
});
this.route( "team", { path: "/team/:team_id" }, function() {
this.route( "members" );
this.route( "info" );
});
this.route( "settings", function() {
this.route( "main" );
this.route( "streams" );
this.route( "streaming" );
this.route( "player" );
this.route( "chat" );
this.route( "gui" );
this.route( "lists" );
this.route( "languages" );
this.route( "hotkeys" );
this.route( "notifications" );
this.route( "channels" );
});
this.route( "about" );
});