Skip to content

Can URLs support multiple? The same link supports multiple settings #3435

Answered by robjtede
sunkaifei asked this question in Q&A
Discussion options

You must be logged in to vote

There's no macro that has that syntax. You best solution using macros is:

#[routes]
#[get("/test")]
#[get("/abc")]
async fn handler() -> { ... }

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@sunkaifei
Comment options

@robjtede
Comment options

Answer selected by robjtede
@sunkaifei
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3433 on July 18, 2024 15:05.