X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fapp-routing.module.ts;h=a9d9c723addf9d5bebbba1e196dcc45d70122c17;hb=384ba8b77a8e4805c099f5ea12b41c2ca5776e26;hp=cd499845b542eb6ea8ffc2a6b90187c3813857a1;hpb=7b51ede977c299a74728171d8c124bcc4cbba6ea;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index cd499845b..a9d9c723a 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts @@ -96,6 +96,7 @@ const routes: Routes = [ { path: 'videos/upload', loadChildren: () => import('@app/+videos/+video-edit/video-add.module').then(m => m.VideoAddModule), + canActivateChild: [ MetaGuard ], data: { meta: { title: $localize`Upload a video` @@ -105,6 +106,7 @@ const routes: Routes = [ { path: 'videos/update/:uuid', loadChildren: () => import('@app/+videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule), + canActivateChild: [ MetaGuard ], data: { meta: { title: $localize`Edit a video` @@ -144,8 +146,14 @@ const routes: Routes = [ }, { - path: 'video-editor', - loadChildren: () => import('./+video-editor/video-editor.module').then(m => m.VideoEditorModule), + path: 'studio', + loadChildren: () => import('./+video-studio/video-studio.module').then(m => m.VideoStudioModule), + canActivateChild: [ MetaGuard ] + }, + + { + path: 'stats', + loadChildren: () => import('./+stats/stats.module').then(m => m.StatsModule), canActivateChild: [ MetaGuard ] },