mirror of
https://github.com/Floriansylvain/SnippetsManager.git
synced 2026-10-19 00:34:11 +02:00
Removed function keyword
This commit is contained in:
1 parent
4d30607cca
commit
8ec166e88e
1 file changed
+1
-1
+1
-1
@@ -9,7 +9,7 @@ import { getJwtSecret } from './utils/jwt.js'
|
||||
const app = express()
|
||||
const appRouter = express.Router()
|
||||
|
||||
const authMiddleware: RequestHandler = function (req, res, next) {
|
||||
const authMiddleware: RequestHandler = (req, res, next) => {
|
||||
const token = req.cookies.jwt
|
||||
if (token == undefined) {
|
||||
res.status(400).send({ message: 'Cannot find jwt auth cookie.' })
|
||||
|
||||
Reference in new issue
Block a user