Skip to content

How to nest scopes? #2539

Answered by aliemjay
cupcakearmy asked this question in Q&A
Dec 22, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You need to remove the trailing slash in scopes. Currently it only matches /api//sub//other_routes.

See https://docs.rs/actix-web/4.0.0-beta.15/actix_web/dev/struct.ResourceDef.html#pattern-format-and-matching-behavior .

Replies: 1 comment 1 reply

Comment options

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

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