NestJS - Middleware
You wrote this NestJS middleware but requests never reach the handler. What is the problem?
export function authMiddleware(req, res, next) {
if (!req.headers.authorization) {
res.status(401).send('Unauthorized');
return;
}
next();
}