express
express copied to clipboard
Error handling middleware not being called.
here's my app.ts (index.ts contain app.listen part after successful connection with mongo.db);
here's test controller.
when hit API with postman, none of the error is showing.
it seems like the above code should work if the routes are placed properly w.r.t its controllers.
Can you provide some more info regarding to which route you are calling and how the routes are related to main router and so on..
Yes, it's working fine. I accidentally made a mistake in the routes.
Closing this as seems solved :)
yes, thank you :)