”2016-05-10”

This commit is contained in:
Martin Donnelly 2016-05-10 16:45:04 +01:00
parent cc7936c602
commit ff92d17b59
2 changed files with 18469 additions and 7169 deletions

View File

@ -5,7 +5,7 @@ module.exports = function(app) {
var accountsRouter = express.Router();
accountsRouter.get('/:uid', function(req, res) {
console.log(req.headers);
if (/Bearer .+/.test(req.headers.authorization)) {
dbAccounts.sqlGetAccountDetails(req.params.uid)
@ -23,8 +23,11 @@ module.exports = function(app) {
})
.catch(function(err) {
console.error(err);
res.status(401).end();
res.status(400).end();
});
} else {
console.log(req.headers);
res.status(401).end();
}
});

File diff suppressed because one or more lines are too long