Skip to content

Setup multiple routes in one code. #846

Answered by Tratcher
latala43 asked this question in Q&A
Discussion options

You must be logged in to vote

r.WithTransformPathRemovePrefix("/s1");

Try this:
r = r.WithTransformPathRemovePrefix("/s1");

r is immutable so the With* extensions return a modified copy. This mirrors the new C#9 keyword with.

Replies: 1 comment 1 reply

Comment options

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

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