import * as cors from 'cors'
import * as express from 'express'
import { getServerActor } from '@server/models/application/application'
-import { MAccountId, MActorId, MChannelId, MVideoId, MVideoUrl } from '@server/types/models'
+import { MAccountId, MActorId, MChannelId, MVideoId } from '@server/types/models'
import { VideoPrivacy, VideoRateType } from '../../../shared/models/videos'
import { VideoPlaylistPrivacy } from '../../../shared/models/videos/playlist/video-playlist-privacy.model'
import { activityPubCollectionPagination, activityPubContextify } from '../../helpers/activitypub'
// Intercept ActivityPub client requests
-activityPubClientRouter.get('/accounts?/:name',
+activityPubClientRouter.get(
+ [ '/accounts?/:name', '/accounts?/:name/video-channels' ],
executeIfActivityPub,
asyncMiddleware(localAccountValidator),
accountController
asyncMiddleware(videoCommentController)
)
-activityPubClientRouter.get('/video-channels/:name',
+activityPubClientRouter.get(
+ [ '/video-channels/:name', '/video-channels/:name/videos' ],
executeIfActivityPub,
asyncMiddleware(localVideoChannelValidator),
videoChannelController