Also serve AP for new account/video watch pages
This commit is contained in:
parent
69322042c4
commit
559985b51c
1 changed files with 4 additions and 3 deletions
|
@ -43,7 +43,7 @@ activityPubClientRouter.use(cors())
|
||||||
// Intercept ActivityPub client requests
|
// Intercept ActivityPub client requests
|
||||||
|
|
||||||
activityPubClientRouter.get(
|
activityPubClientRouter.get(
|
||||||
[ '/accounts?/:name', '/accounts?/:name/video-channels' ],
|
[ '/accounts?/:name', '/accounts?/:name/video-channels', '/a/:name', '/a/:name/video-channels' ],
|
||||||
executeIfActivityPub,
|
executeIfActivityPub,
|
||||||
asyncMiddleware(localAccountValidator),
|
asyncMiddleware(localAccountValidator),
|
||||||
accountController
|
accountController
|
||||||
|
@ -74,7 +74,8 @@ activityPubClientRouter.get('/accounts?/:name/dislikes/:videoId',
|
||||||
getAccountVideoRateFactory('dislike')
|
getAccountVideoRateFactory('dislike')
|
||||||
)
|
)
|
||||||
|
|
||||||
activityPubClientRouter.get('/videos/watch/:id',
|
activityPubClientRouter.get(
|
||||||
|
[ '/videos/watch/:id', '/w/:id' ],
|
||||||
executeIfActivityPub,
|
executeIfActivityPub,
|
||||||
asyncMiddleware(cacheRoute()(ROUTE_CACHE_LIFETIME.ACTIVITY_PUB.VIDEOS)),
|
asyncMiddleware(cacheRoute()(ROUTE_CACHE_LIFETIME.ACTIVITY_PUB.VIDEOS)),
|
||||||
asyncMiddleware(videosCustomGetValidator('all')),
|
asyncMiddleware(videosCustomGetValidator('all')),
|
||||||
|
@ -122,7 +123,7 @@ activityPubClientRouter.get('/videos/watch/:videoId/comments/:commentId/activity
|
||||||
)
|
)
|
||||||
|
|
||||||
activityPubClientRouter.get(
|
activityPubClientRouter.get(
|
||||||
[ '/video-channels/:name', '/video-channels/:name/videos' ],
|
[ '/video-channels/:name', '/video-channels/:name/videos', '/c/:name', '/c/:name/videos' ],
|
||||||
executeIfActivityPub,
|
executeIfActivityPub,
|
||||||
asyncMiddleware(localVideoChannelValidator),
|
asyncMiddleware(localVideoChannelValidator),
|
||||||
videoChannelController
|
videoChannelController
|
||||||
|
|
Loading…
Reference in a new issue