Posts by matheuslopess1 • 9 points
1 post
-
0
votes0
answers39
viewsQ: Capturing except for routes on express
I write an application with Express and Typescript, and to capture the exceptions of the routes I do so: index ts. // ... app.use(userRoutes); app.use(handleError); // ... having 'handleError' in a…