@@ -112,7 +112,7 @@ app.use('/api', api_routes); | |||
app.use(express.static(__dirname + '/public')); | |||
// Other stuff is NOT authorized unless logged in | |||
app.use (authorize.genCheckAuthorized ('user')); | |||
//app.use (authorize.genCheckAuthorized ('user')); | |||
// No error so far? Then it's a 404! | |||
app.use(function (req, res, next) { |
@@ -386,18 +386,4 @@ const dbs = { | |||
models: model, | |||
}; | |||
/* | |||
app.get ("/api/msg/search/:phrase", function (req, res) { | |||
Message.find ({$text: {$search: req.params.phrase}) .then (function (err, results){ | |||
if (err) { | |||
console.log (err); | |||
res .status(404) .json (err); | |||
} else { | |||
console.log(JSON.stringify(results)); | |||
res.json(results); | |||
} | |||
}); | |||
}); | |||
*/ | |||
module.exports = dbs; |