Skip to content
Discussion options

You must be logged in to vote

@edanbenavi , You cannot change the order of execution . Middleware runs first before exception handlers (including RequestValidationError). Even you define a custom router and a middleware, the control goes through the app like this :

middleware -> CustomRouter -> Route

Since you haven't mentioned a specific middleware, I don't know your use-case to suggest further.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
2 participants