Is there a way to apply middleware to the API, but not the docs? #2838
Unanswered
ChrisThompsonTLDR
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems like if I apply a global middleware in the config, it applies to the
/api
docs/swagger page, as well as the actual API endpoints.If I understand this correctly, that means if I want to apply a middleware to the endpoints, I have to do it on every model, so that the middle is not applied to the docs at
/api
.Am I misunderstanding?
Beta Was this translation helpful? Give feedback.
All reactions