main
alex 2024-01-14 14:31:20 +01:00
parent dbaefcdd7c
commit 799100fdd3
1 changed files with 2 additions and 2 deletions

View File

@ -86,11 +86,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();