-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Handling dynamic paths / routes #2102
Comments
Probably, gin ain't tool/library suitable for my needs. Feel free to close this issue, if you like. I'm going to use more versatile and convenient httptreemux, which provides features needed for above use-case: catch-all variable at end of the rule, and "overlapping/sub-set" rules evaluated according to specific priority. |
Yep, I have been having basic issues with the router used which I commented about in another issue. I cannot achieve this without conflicts (I could in another router, forgot which one):
using: /*
router.Static("/", "./static")
or
router.StaticFS("/", gin.Dir("./static", false))
*/
router.GET("/socket.io/", gin.WrapH(server))
router.POST("/socket.io/", gin.WrapH(server)) where the directory structure is:
|
|
I am planning to create support for dynamic pages, where user/admin can create page using rich text, and assign it a path (actually, it would be a tree-like structure with "infinite" depth).
So, I will need routing, which handles calls in following order:
Is it possible to do so with gin?
The text was updated successfully, but these errors were encountered: