3 const searchMiddleware = {
4 setVideosSearch: setVideosSearch
7 function setVideosSearch (req, res, next) {
8 if (!req.query.field) req.query.field = 'name'
13 // ---------------------------------------------------------------------------
15 module.exports = searchMiddleware