aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/search.ts
blob: 05a2e744273077df1984909b6e192ff4fc7212da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
function setVideosSearch (req, res, next) {
  if (!req.query.field) req.query.field = 'name'

  return next()
}

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

export {
  setVideosSearch
}