1
0
Fork 0
peertube/server/middlewares/search.ts

15 lines
342 B
TypeScript
Raw Normal View History

2017-06-10 20:15:25 +00:00
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()
}
// ---------------------------------------------------------------------------
2017-05-15 20:22:03 +00:00
export {
setVideosSearch
}