aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/middlewares/search.ts
blob: 6fe83d25b43e01e5969536548e357d467a05b0e0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                                                                    





                                                                              

                 
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()
}

// ---------------------------------------------------------------------------

export {
  setVideosSearch
}