mirror of https://github.com/Chocobozzz/PeerTube
				
				
				
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			342 B
		
	
	
	
		
			TypeScript
		
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			342 B
		
	
	
	
		
			TypeScript
		
	
	
import 'express-validator'
 | 
						|
import * as express from 'express'
 | 
						|
 | 
						|
function setVideosSearch (req: express.Request, res: express.Response, next: express.NextFunction) {
 | 
						|
  if (!req.query.field) req.query.field = 'name'
 | 
						|
 | 
						|
  return next()
 | 
						|
}
 | 
						|
 | 
						|
// ---------------------------------------------------------------------------
 | 
						|
 | 
						|
export {
 | 
						|
  setVideosSearch
 | 
						|
}
 |