Replies: 1 comment 1 reply
-
I'd recommend you use https://docs.rs/axum/0.6.0-rc.1/axum/middleware/fn.from_fn.html instead. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I'm sorry but I'm trying to figure out how to use tower_http/AsyncRequireAuthorizationLayer toger with axum. I'm not sure how to post the code in question, so I do it inline here (do you prefer a gist or a separate repo?):
The errors are really ugly in this case:
If I switch over returning an error, the errors change to:
What I'm doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions