2017-06-10 16:15:25 -04:00
|
|
|
import 'express-validator'
|
|
|
|
import * as express from 'express'
|
|
|
|
|
|
|
|
function setVideosSearch (req: express.Request, res: express.Response, next: express.NextFunction) {
|
2016-05-22 03:15:00 -04:00
|
|
|
if (!req.query.field) req.query.field = 'name'
|
|
|
|
|
|
|
|
return next()
|
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
2017-05-15 16:22:03 -04:00
|
|
|
export {
|
|
|
|
setVideosSearch
|
|
|
|
}
|