How to get Path information in from_fn_with_state_arc #1440
Answered
by
davidpdrsn
tingfeng-key
asked this question in
Q&A
-
My URL definition: /test/:account/test_url Then I want to get the account parameter in from_fn_with_state_arc. How can I do this please? |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Oct 2, 2022
Replies: 1 comment 3 replies
-
You can run extractors like this https://docs.rs/axum/0.6.0-rc.2/axum/middleware/fn.from_fn.html#running-extractors |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
tingfeng-key
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can run extractors like this https://docs.rs/axum/0.6.0-rc.2/axum/middleware/fn.from_fn.html#running-extractors