less logging

This commit is contained in:
Will Bradley 2018-09-01 17:25:03 -07:00
parent 5d263d070d
commit 3fbda25cbd
No known key found for this signature in database
GPG Key ID: 42BAE225DDDB7093

View File

@ -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)
}
}