]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app-routing.module.ts
Support videos stats in client
[github/Chocobozzz/PeerTube.git] / client / src / app / app-routing.module.ts
index cd499845b542eb6ea8ffc2a6b90187c3813857a1..a9d9c723addf9d5bebbba1e196dcc45d70122c17 100644 (file)
@@ -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 ]
   },