]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/middlewares/search.ts
Type functions
[github/Chocobozzz/PeerTube.git] / server / middlewares / search.ts
CommitLineData
69818c93
C
1import 'express-validator'
2import * as express from 'express'
3
4function setVideosSearch (req: express.Request, res: express.Response, next: express.NextFunction) {
46246b5f
C
5 if (!req.query.field) req.query.field = 'name'
6
7 return next()
8}
9
10// ---------------------------------------------------------------------------
11
65fcc311
C
12export {
13 setVideosSearch
14}