alex 2024-01-14 13:13:09 +01:00
parent 519cd13631
commit bee448cd47
1 changed files with 2 additions and 2 deletions

View File

@ -84,11 +84,11 @@ app.use((req, res, next) => {
console.log("req not found, path:", req.path); console.log("req not found, path:", req.path);
res.status(404).send("not found"); res.status(404).send("not found");
}); });
/*
app.use((err: any, req: any, res: any, next: any) => { app.use((err: any, req: any, res: any, next: any) => {
console.log("req err", err.stack); console.log("req err", err.stack);
res.status(500).send({ err: "invalid request" }); res.status(500).send({ err: "invalid request" });
}); */ });
syncModels(); syncModels();