diff options
| author | Pitu <[email protected]> | 2019-03-19 07:58:36 +0000 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-03-19 07:58:36 +0000 |
| commit | 107d1f4750e8f82a628b528c4ec200e918be271d (patch) | |
| tree | 0225bca3fd2a27e81b2ff711e53278cee890fdab /src/api/structures | |
| parent | add restart at the end of update command (diff) | |
| download | host.fuwn.me-107d1f4750e8f82a628b528c4ec200e918be271d.tar.xz host.fuwn.me-107d1f4750e8f82a628b528c4ec200e918be271d.zip | |
API key WIP
Diffstat (limited to 'src/api/structures')
| -rw-r--r-- | src/api/structures/Route.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/structures/Route.js b/src/api/structures/Route.js index a359488..19d33f9 100644 --- a/src/api/structures/Route.js +++ b/src/api/structures/Route.js @@ -26,6 +26,7 @@ class Route { authorize(req, res) { if (this.options.bypassAuth) return this.run(req, res, db); + console.log(req.headers); if (!req.headers.authorization) return res.status(401).json({ message: 'No authorization header provided' }); const token = req.headers.authorization.split(' ')[1]; if (!token) return res.status(401).json({ message: 'No authorization header provided' }); |