mirror of
https://gitlab.silvrtree.co.uk/martind2000/obrand-admin-server.git
synced 2025-01-10 21:15:08 +00:00
”2016-05-10”
This commit is contained in:
parent
cc7936c602
commit
ff92d17b59
@ -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
Loading…
Reference in New Issue
Block a user