Skip to content
New issue

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

Store the original registered route path when Router matches #866

Merged
merged 3 commits into from Jun 22, 2022

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Jun 22, 2022

This is a common feature of other router implementations, sometimes referred
to as "reverse routing". We don't go the full way in allowing you to do
getregisteredroute(r::Router, url), but we could do that eventually. For now,
it's at least very useful to store the registered route that was matched
during request handling.

This is a common feature of other router implementations, sometimes referred
to as "reverse routing". We don't go the full way in allowing you to do
`getregisteredroute(r::Router, url)`, but we could do that eventually. For now,
it's at least very useful to store the registered route that was matched
during request handling.
src/Handlers.jl Outdated Show resolved Hide resolved
@quinnj quinnj merged commit 25d712e into master Jun 22, 2022
@quinnj quinnj deleted the jq/reverseroute branch June 22, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants