Chocobozzz/PeerTube

View on GitHub
client/src/app/+video-studio/routes.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Routes } from '@angular/router'
import { LoginGuard } from '@app/core'
import { VideoStudioEditComponent } from './edit'
import { VideoStudioService } from './shared'
import { VideoResolver } from '@app/shared/shared-main/video/video.resolver'

export default [
  {
    path: '',
    canActivateChild: [ LoginGuard ],
    providers: [ VideoStudioService ],
    children: [
      {
        path: 'edit/:videoId',
        component: VideoStudioEditComponent,
        data: {
          meta: {
            title: $localize`Studio`
          }
        },
        resolve: {
          video: VideoResolver
        }
      }
    ]
  }
] satisfies Routes