46246b5f19
podUrl...)
15 lines
306 B
JavaScript
15 lines
306 B
JavaScript
'use strict'
|
|
|
|
const searchMiddleware = {
|
|
setVideosSearch: setVideosSearch
|
|
}
|
|
|
|
function setVideosSearch (req, res, next) {
|
|
if (!req.query.field) req.query.field = 'name'
|
|
|
|
return next()
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
module.exports = searchMiddleware
|