add me point to load user data of current user
This commit is contained in:
parent
fac606cf97
commit
e5b5d7e67d
12 changed files with 215 additions and 67 deletions
|
|
@ -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" });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue