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

How to support root level wildcard parameters in path? #2286

Closed
ghost opened this issue Mar 18, 2020 · 2 comments
Closed

How to support root level wildcard parameters in path? #2286

ghost opened this issue Mar 18, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 18, 2020

How do I achieve the following with Gin

router.GET("/: userHandle/*userAction", func(c *gin.Context) {
}

panic: wildcard route ': userHandle' conflicts with existing children in path '/:userHandle'

@ghost ghost changed the title How to support root level wildcard How to support root level wildcard parameters in path Mar 18, 2020
@ghost ghost changed the title How to support root level wildcard parameters in path How to support root level wildcard parameters in path? Mar 18, 2020
@ghost
Copy link
Author

ghost commented Mar 21, 2020

Anybody there? 36K stars!!!!! My ass.

@appleboy
Copy link
Member

See the comment #2016 (comment)

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

No branches or pull requests

1 participant