test
parent
95be2a1e78
commit
c4bb9042f0
|
@ -86,11 +86,11 @@ app.use((req, res, next) => {
|
|||
console.log("req not found, path:", req.path);
|
||||
res.status(404).send("not found");
|
||||
});
|
||||
/*
|
||||
|
||||
app.use((err: any, req: any, res: any, next: any) => {
|
||||
console.log("req err", err.stack);
|
||||
res.status(500).send({ err: "invalid request" });
|
||||
}); */
|
||||
});
|
||||
|
||||
syncModels();
|
||||
|
||||
|
|
Loading…
Reference in New Issue