aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-23 09:48:48 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commita8b666e9f1ed002230869606308749614390c82f (patch)
tree9fb59c3f322cf77ac6b37cc27e2c726f0e10c7ba /server/controllers/api/videos
parent7663e55a2cc46a413bceee2787d48902b15ae642 (diff)
downloadPeerTube-a8b666e9f1ed002230869606308749614390c82f.tar.gz
PeerTube-a8b666e9f1ed002230869606308749614390c82f.tar.zst
PeerTube-a8b666e9f1ed002230869606308749614390c82f.zip
Add plugin static files cache
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r--server/controllers/api/videos/blacklist.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/videos/blacklist.ts b/server/controllers/api/videos/blacklist.ts
index 27dcfb761..0ec518e0d 100644
--- a/server/controllers/api/videos/blacklist.ts
+++ b/server/controllers/api/videos/blacklist.ts
@@ -100,13 +100,13 @@ async function updateVideoBlacklistController (req: express.Request, res: expres
100 return res.type('json').status(204).end() 100 return res.type('json').status(204).end()
101} 101}
102 102
103async function listBlacklist (req: express.Request, res: express.Response, next: express.NextFunction) { 103async function listBlacklist (req: express.Request, res: express.Response) {
104 const resultList = await VideoBlacklistModel.listForApi(req.query.start, req.query.count, req.query.sort, req.query.type) 104 const resultList = await VideoBlacklistModel.listForApi(req.query.start, req.query.count, req.query.sort, req.query.type)
105 105
106 return res.json(getFormattedObjects<VideoBlacklist, VideoBlacklistModel>(resultList.data, resultList.total)) 106 return res.json(getFormattedObjects(resultList.data, resultList.total))
107} 107}
108 108
109async function removeVideoFromBlacklistController (req: express.Request, res: express.Response, next: express.NextFunction) { 109async function removeVideoFromBlacklistController (req: express.Request, res: express.Response) {
110 const videoBlacklist = res.locals.videoBlacklist 110 const videoBlacklist = res.locals.videoBlacklist
111 const video = res.locals.video 111 const video = res.locals.video
112 112