mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add plugin static files cache
This commit is contained in:
parent
7663e55a2c
commit
a8b666e9f1
6 changed files with 36 additions and 20 deletions
|
@ -100,13 +100,13 @@ async function updateVideoBlacklistController (req: express.Request, res: expres
|
|||
return res.type('json').status(204).end()
|
||||
}
|
||||
|
||||
async function listBlacklist (req: express.Request, res: express.Response, next: express.NextFunction) {
|
||||
async function listBlacklist (req: express.Request, res: express.Response) {
|
||||
const resultList = await VideoBlacklistModel.listForApi(req.query.start, req.query.count, req.query.sort, req.query.type)
|
||||
|
||||
return res.json(getFormattedObjects<VideoBlacklist, VideoBlacklistModel>(resultList.data, resultList.total))
|
||||
return res.json(getFormattedObjects(resultList.data, resultList.total))
|
||||
}
|
||||
|
||||
async function removeVideoFromBlacklistController (req: express.Request, res: express.Response, next: express.NextFunction) {
|
||||
async function removeVideoFromBlacklistController (req: express.Request, res: express.Response) {
|
||||
const videoBlacklist = res.locals.videoBlacklist
|
||||
const video = res.locals.video
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue