+
+async function videoController (req: express.Request, res: express.Response, next: express.NextFunction) {
+ const video: VideoInstance = res.locals.video
+
+ return res.json(video.toActivityPubObject())
+}
+
+async function videoChannelController (req: express.Request, res: express.Response, next: express.NextFunction) {
+ const videoChannel: VideoChannelInstance = res.locals.videoChannel
+
+ return res.json(videoChannel.toActivityPubObject())
+}