fix: send api

This commit is contained in:
eneller
2026-03-18 10:27:26 +01:00
parent 823d696d86
commit 7f3326c4a5
5 changed files with 38 additions and 15 deletions

View File

@@ -30,6 +30,7 @@ async function requireAuth(req: Request, res: Response, next: NextFunction) {
if (!user) {
return res.status(401).json({ error: 'Unauthorized: User not found' });
}
//TODO extend req instead of using res.locals
res.locals.user = user;
next();
} catch (err) {