aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/middlewares/search.ts
blob: 05a2e744273077df1984909b6e192ff4fc7212da (plain) (tree)
1
2
3
4
5
6
7
8







                                                                              


                 
function setVideosSearch (req, res, next) {
  if (!req.query.field) req.query.field = 'name'

  return next()
}

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

export {
  setVideosSearch
}