Skip to content

are macros able to bind multiple paths for one handler? #1932

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

You must be logged in to vote

The macros don't support this currently. Use the manual routing methods.

.service(web::resource("/hello").get(health))
.service(web::resource("/health").get(health))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@godlockin
Comment options

Answer selected by godlockin
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