mirror of
				https://github.com/zyphlar/doorlock.git
				synced 2024-04-03 21:36:03 +00:00 
			
		
		
		
	less logging
This commit is contained in:
		
							parent
							
								
									5d263d070d
								
							
						
					
					
						commit
						3fbda25cbd
					
				@ -28,10 +28,8 @@ module.exports = (req, res) => {
 | 
			
		||||
 | 
			
		||||
function reponse(req,res,path,success,name=null,message=null) {
 | 
			
		||||
  if(/application\/json/.test(req.get('accept'))) {
 | 
			
		||||
    console.log("returning json", success)
 | 
			
		||||
    res.json({"success":success, "path":path, "name":name, "message": message})
 | 
			
		||||
  } else {
 | 
			
		||||
    console.log("returning redir")
 | 
			
		||||
    res.redirect(path)
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user