// 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