]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/search.ts
Video blacklist refractoring
[github/Chocobozzz/PeerTube.git] / server / middlewares / search.ts
index 05a2e744273077df1984909b6e192ff4fc7212da..6fe83d25b43e01e5969536548e357d467a05b0e0 100644 (file)
@@ -1,4 +1,7 @@
-function setVideosSearch (req, res, next) {
+import 'express-validator'
+import * as express from 'express'
+
+function setVideosSearch (req: express.Request, res: express.Response, next: express.NextFunction) {
   if (!req.query.field) req.query.field = 'name'
 
   return next()