mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-22 08:46:54 -06:00
46246b5f19
podUrl...)
16 lines
306 B
JavaScript
16 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
|