- [API] Added User routes (need polishing because it parses and sends sensitive data)

This commit is contained in:
Alexis
2020-05-23 21:48:27 +02:00
parent 64389a3c07
commit 08b0b94bd8
10 changed files with 794 additions and 113 deletions

7
routes/auth.js Normal file
View File

@@ -0,0 +1,7 @@
const jwt = require('jsonwebtoken')
const isAuthenticated = (req, res, next) => {
if (typeof req.headers.authorization !== undefined) {
let token = req.headers.authorization.split(" ")[1]
}
}