Feature Request
Not all of the url routing is complete. I'm just wondering if support for routing on subdomains could be added into the framework.
Detailed Description
Add new methods to the router.rs and server.rs to support users to route on subdomains as well. An example of the resulting api I am thinking of would look like so:
let mut app = tide::new();
app.on_subdomain(":sub1.:sub2.:sub3").at("/").with(validate_subdomain).all(handle_user);
Context
I have an application that can have multiple tenets that can upload content to the server and would like to configure my webserver to be able to route on subdomains. This will benefit other users of tide who want to add the same functionality to their own application.
Possible Implementation
I haven't dove into the code base that much but i would assume that I would need to add functionality to server.rs and router.rs. I know this maybe a big addition so I wouldn't mind taking a chance and implementing it and putting in a PR.
Just wondering if this project is also interested in adding support for it and want to start a discussion.
Feature Request
Not all of the url routing is complete. I'm just wondering if support for routing on subdomains could be added into the framework.
Detailed Description
Add new methods to the
router.rsandserver.rsto support users to route on subdomains as well. An example of the resulting api I am thinking of would look like so:Context
I have an application that can have multiple tenets that can upload content to the server and would like to configure my webserver to be able to route on subdomains. This will benefit other users of tide who want to add the same functionality to their own application.
Possible Implementation
I haven't dove into the code base that much but i would assume that I would need to add functionality to
server.rsandrouter.rs. I know this maybe a big addition so I wouldn't mind taking a chance and implementing it and putting in a PR.Just wondering if this project is also interested in adding support for it and want to start a discussion.