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

feat: add support for /path/:slug/path/:slug pattern in paths #35

Merged

Conversation

jfontan
Copy link
Contributor

@jfontan jfontan commented Feb 14, 2022

Previously matching fixed parts after a variable was not supported.

Note: When two routes can match the same path the first one will be
used. For example, if these two routes are registered:

  • /path/:var/:var3/:var2
  • /path/:var/fixed/:var2

The path /path/one/fixed/two will match the first route.

Previously matching fixed parts after a variable was not supported.

Note: When two routes can match the same path the first one will be
used. For example, if these two routes are registered:

* `/path/:var/:var3/:var2`
* `/path/:var/fixed/:var2`

The path `/path/one/fixed/two` will match the first route.
@megatank58 megatank58 changed the title feature: support /path/:var/fixed/:var2 paths feat: add support for /path/:slug/path/:slug pattern in paths Feb 15, 2022
Copy link
Contributor

@megatank58 megatank58 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The param struct needs minima documentation comments, rest LGTM!

@megatank58 megatank58 merged commit d80fe31 into gominima:hash-table Feb 15, 2022
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