-
Notifications
You must be signed in to change notification settings - Fork 321
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
Add subdomain routing #720
base: main
Are you sure you want to change the base?
Conversation
@jbr Had a direction idea on this that wasn't posted to the original issue which I personally think is much better and more powerful than It's possible that idea may not work out or may not materialize, but I think we should either consider waiting or consider that this api may later be dropped. |
Yes, he actually posted his idea inside of issue #690 but then soon deleted it. Though i still have his response. He proposed doing routing using the entire url like so: app.at("/path/still/works").get(…);
app.at("http://*/only-http").get(…);
app.at("//example.com/any-scheme/but-only-example.com").get(…); I agree that this would be a lot more powerful but I also think that it would also be a lot more work. I just assumed that because he deleted his comment it wasn't being considered anymore. |
I would love to have support for this, as well. |
Adds support for routing on subdomains.
Description
Look at issue #690.
Motivation and Context
I needed support for routing on subdomains inside of my project.
How Has This Been Tested?
New tests have been added into the
/tests/namespace.rs
file.Types of changes
Checklist