add me point to load user data of current user

This commit is contained in:
Anika Raemer 2025-09-27 07:47:26 +02:00
parent fac606cf97
commit e5b5d7e67d
12 changed files with 215 additions and 67 deletions

View file

@ -32,7 +32,12 @@ async function startServer() {
app.use("/user", userRoutes);
// app.use("/recipe", recipeRoutes);
// Error handling for all rest-calls
// must come last!
app.use(errorHandler);
console.log("auth and user routes added")
// catch all other routes
app.get(/(.*)/, (req: Request, res: Response, next: NextFunction) => {
res.status(400).json({ message: "Bad Request" });
});