Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

route.md: Add wildcard example code #2569

Merged
merged 2 commits into from
May 2, 2024
Merged

Conversation

Enselic
Copy link
Contributor

@Enselic Enselic commented Feb 6, 2024

To developers completely new to axum, it helps a lot to give example code on to get access to the variable path in a handler.

Rendered:

image

Even if the example is not perfect, my hope is that it will be better than nothing. It certainly would have helped me at least.

But feel free to close this PR if the example is too sloppy.

To developers completely new to axum, it helps a lot to give example
code on to get access to the variable path in a handler.

Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
@Enselic
Copy link
Contributor Author

Enselic commented Feb 22, 2024

Thanks for the review. I think I fixed your comment now.

@Enselic
Copy link
Contributor Author

Enselic commented Apr 25, 2024

I'd like to keep my PR outbox clean, so let's close this for now. Doesn't seem worth the effort to keep working on.

@Enselic Enselic closed this Apr 25, 2024
@jplatte
Copy link
Member

jplatte commented Apr 30, 2024

Hey, sorry for the long delay. Other than failing CI (which might fix itself with the next run, let's see), this looks good now!

@jplatte jplatte reopened this Apr 30, 2024
@jplatte jplatte enabled auto-merge (squash) May 2, 2024 19:05
@jplatte jplatte merged commit c57c284 into tokio-rs:main May 2, 2024
18 checks passed
@Enselic Enselic deleted the wildcard-docs branch May 2, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants