Replies: 1 comment
-
This is one way to handle this: https://github.com/SergioBenitez/Rocket/blob/master/examples/cookies/src/session.rs#L32 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following simple server does not behave as I would expect:
If the server is started, paths
/base/hello
and/base/redirect
are available. However, what I didn't expect is that/base/redirect
redirects to/hello
instead of to/base/hello
, which makes the macrouri!
useless except ifbase_path
is empty.My question is: Is this expected, or is this a bug? Or did I do something wrong?
What would be the most efficient way to put all paths of the web app behind some base path but still use the convenience macro
uri!
?Beta Was this translation helpful? Give feedback.
All reactions