Commit ee4a038
committed
fix: move Swagger UI to /api-docs to allow errorHandler to work correctly
- Changed `app.use(openAPIRouter)` to `app.use("/api-docs", openAPIRouter")`
- Prevents Swagger UI from interfering with unmatched routes and error propagation
- Undefined routes now correctly return "Not Found"
- Global errorHandler middleware now correctly captures all propagated errors1 parent 823e915 commit ee4a038
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments