aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-27 16:12:41 +0200
committerChocobozzz <me@florianbigard.com>2021-05-27 16:12:41 +0200
commit8f608a4cb22ab232cfab20665050764b38bac9c7 (patch)
tree6a6785aae79bf5939ad7b7a50a1bd8031268d2b4 /client/src/app/app-routing.module.ts
parent030ccfce59a8cb8f2fee6ea8dd363ba635c5c5c2 (diff)
parentc215e627b575d2c4085ccb222f4ca8d0237b7552 (diff)
downloadPeerTube-8f608a4cb22ab232cfab20665050764b38bac9c7.tar.gz
PeerTube-8f608a4cb22ab232cfab20665050764b38bac9c7.tar.zst
PeerTube-8f608a4cb22ab232cfab20665050764b38bac9c7.zip
Merge branch 'develop' into shorter-URLs-channels-accounts
Diffstat (limited to 'client/src/app/app-routing.module.ts')
-rw-r--r--client/src/app/app-routing.module.ts45
1 files changed, 31 insertions, 14 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts
index 0a43ab0ad..4619c4046 100644
--- a/client/src/app/app-routing.module.ts
+++ b/client/src/app/app-routing.module.ts
@@ -3,7 +3,7 @@ import { RouteReuseStrategy, RouterModule, Routes, UrlMatchResult, UrlSegment }
3import { CustomReuseStrategy } from '@app/core/routing/custom-reuse-strategy' 3import { CustomReuseStrategy } from '@app/core/routing/custom-reuse-strategy'
4import { MenuGuards } from '@app/core/routing/menu-guard.service' 4import { MenuGuards } from '@app/core/routing/menu-guard.service'
5import { POSSIBLE_LOCALES } from '@shared/core-utils/i18n' 5import { POSSIBLE_LOCALES } from '@shared/core-utils/i18n'
6import { PreloadSelectedModulesList } from './core' 6import { MetaGuard, PreloadSelectedModulesList } from './core'
7import { EmptyComponent } from './empty.component' 7import { EmptyComponent } from './empty.component'
8import { RootComponent } from './root.component' 8import { RootComponent } from './root.component'
9 9
@@ -12,55 +12,72 @@ const routes: Routes = [
12 path: 'admin', 12 path: 'admin',
13 canActivate: [ MenuGuards.close() ], 13 canActivate: [ MenuGuards.close() ],
14 canDeactivate: [ MenuGuards.open() ], 14 canDeactivate: [ MenuGuards.open() ],
15 loadChildren: () => import('./+admin/admin.module').then(m => m.AdminModule) 15 loadChildren: () => import('./+admin/admin.module').then(m => m.AdminModule),
16 canActivateChild: [ MetaGuard ]
17 },
18 {
19 path: 'home',
20 loadChildren: () => import('./+home/home.module').then(m => m.HomeModule)
16 }, 21 },
17 { 22 {
18 path: 'my-account', 23 path: 'my-account',
19 loadChildren: () => import('./+my-account/my-account.module').then(m => m.MyAccountModule) 24 loadChildren: () => import('./+my-account/my-account.module').then(m => m.MyAccountModule),
25 canActivateChild: [ MetaGuard ]
20 }, 26 },
21 { 27 {
22 path: 'my-library', 28 path: 'my-library',
23 loadChildren: () => import('./+my-library/my-library.module').then(m => m.MyLibraryModule) 29 loadChildren: () => import('./+my-library/my-library.module').then(m => m.MyLibraryModule),
30 canActivateChild: [ MetaGuard ]
24 }, 31 },
25 { 32 {
26 path: 'verify-account', 33 path: 'verify-account',
27 loadChildren: () => import('./+signup/+verify-account/verify-account.module').then(m => m.VerifyAccountModule) 34 loadChildren: () => import('./+signup/+verify-account/verify-account.module').then(m => m.VerifyAccountModule),
35 canActivateChild: [ MetaGuard ]
28 }, 36 },
29 { 37 {
30 path: 'a', 38 path: 'a',
31 loadChildren: () => import('./+accounts/accounts.module').then(m => m.AccountsModule) 39 loadChildren: () => import('./+accounts/accounts.module').then(m => m.AccountsModule),
40 canActivateChild: [ MetaGuard ]
32 }, 41 },
33 { 42 {
34 path: 'c', 43 path: 'c',
35 loadChildren: () => import('./+video-channels/video-channels.module').then(m => m.VideoChannelsModule) 44 loadChildren: () => import('./+video-channels/video-channels.module').then(m => m.VideoChannelsModule),
45 canActivateChild: [ MetaGuard ]
36 }, 46 },
37 { 47 {
38 path: 'about', 48 path: 'about',
39 loadChildren: () => import('./+about/about.module').then(m => m.AboutModule) 49 loadChildren: () => import('./+about/about.module').then(m => m.AboutModule),
50 canActivateChild: [ MetaGuard ]
40 }, 51 },
41 { 52 {
42 path: 'signup', 53 path: 'signup',
43 loadChildren: () => import('./+signup/+register/register.module').then(m => m.RegisterModule) 54 loadChildren: () => import('./+signup/+register/register.module').then(m => m.RegisterModule),
55 canActivateChild: [ MetaGuard ]
44 }, 56 },
45 { 57 {
46 path: 'reset-password', 58 path: 'reset-password',
47 loadChildren: () => import('./+reset-password/reset-password.module').then(m => m.ResetPasswordModule) 59 loadChildren: () => import('./+reset-password/reset-password.module').then(m => m.ResetPasswordModule),
60 canActivateChild: [ MetaGuard ]
48 }, 61 },
49 { 62 {
50 path: 'login', 63 path: 'login',
51 loadChildren: () => import('./+login/login.module').then(m => m.LoginModule) 64 loadChildren: () => import('./+login/login.module').then(m => m.LoginModule),
65 canActivateChild: [ MetaGuard ]
52 }, 66 },
53 { 67 {
54 path: 'search', 68 path: 'search',
55 loadChildren: () => import('./+search/search.module').then(m => m.SearchModule) 69 loadChildren: () => import('./+search/search.module').then(m => m.SearchModule),
70 canActivateChild: [ MetaGuard ]
56 }, 71 },
57 { 72 {
58 path: 'videos', 73 path: 'videos',
59 loadChildren: () => import('./+videos/videos.module').then(m => m.VideosModule) 74 loadChildren: () => import('./+videos/videos.module').then(m => m.VideosModule),
75 canActivateChild: [ MetaGuard ]
60 }, 76 },
61 { 77 {
62 path: 'remote-interaction', 78 path: 'remote-interaction',
63 loadChildren: () => import('./+remote-interaction/remote-interaction.module').then(m => m.RemoteInteractionModule) 79 loadChildren: () => import('./+remote-interaction/remote-interaction.module').then(m => m.RemoteInteractionModule),
80 canActivateChild: [ MetaGuard ]
64 }, 81 },
65 { 82 {
66 path: 'video-playlists/watch', 83 path: 'video-playlists/watch',