Fix dynamic route requests, add auth middleware

This commit is contained in:
advplyr 2021-08-23 19:37:40 -05:00
parent 7ef977b783
commit db2f2d6660
11 changed files with 29 additions and 25 deletions

View file

@ -42,7 +42,7 @@ class Auth {
const authHeader = req.headers['authorization']
const token = authHeader && authHeader.split(' ')[1]
if (token == null) {
Logger.error('Api called without a token')
Logger.error('Api called without a token', req.path)
return res.sendStatus(401)
}