We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capture
When using regex to match a route, I am able to later retrieve matched path with param "0", as in example described here:
regex
param "0"
https://hackage.haskell.org/package/scotty-0.12/docs/Web-Scotty.html#v:regex
Can this be done if I match a route using capture?
The text was updated successfully, but these errors were encountered:
It's not possible in the current state of things. As the original pattern is turned into a WAI middleware, see :
scotty/Web/Scotty/Route.hs
Lines 86 to 108 in dc66aa0
It should be possible to add the orignal pattern to ActionEnv
ActionEnv
What do you think @ocramz ? This could be a nice new feature, I could see myself using it for logging and metrics metadata
Sorry, something went wrong.
Agreed this would be nice to have !
No branches or pull requests
When using
regex
to match a route, I am able to later retrieve matched path withparam "0"
, as in example described here:https://hackage.haskell.org/package/scotty-0.12/docs/Web-Scotty.html#v:regex
Can this be done if I match a route using
capture
?The text was updated successfully, but these errors were encountered: