-
Notifications
You must be signed in to change notification settings - Fork 14
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
Is it possible to add Sub Trees ? #34
Comments
Hello @dinko-pehar, thank you for your patience. Can you explain a bit further the thing you're trying to achieve? This radix implementation is a bit complex and serves only as lookup, but is not a router. Each time a new entry is added the tree gets updated. To perform something like you're asking, it will require to iterate over the inner trees and map that, resulting in duplicate entries in memory. Basically: the pet and user routers only serve to provide the list of entries, but no tree resolution by itself. If not, once But I might be missing details of what you want to achieve, so it will be better if you can give more concrete examples. Thank you. |
I was hoping for For me, I thought to use it with HTTP handlers from Crystal. Basically, having a HTTP Server that first gets a route name with
Register subrouter (subtree) in main tree. Tree inside Tree. Not sure if it's clear enough... |
Hello.
I found your project
radix
to be really useful and I discovered it because it's used inside Kemal web framework. Although Kemal is great, I'm looking into making my own simple router using your project.I'm wondering, is there some solution to sub mounting routes ? For example, Starlette framework has support for that.
I tried some solution, but I end up getting a
Tree
instead ofResult
:What I was hoping for is that result would return
"All Users"
instead ofNil
. I assume I'm doing a long stretch here but I'm just curious if this is possible.Thank you.
The text was updated successfully, but these errors were encountered: