We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be nice if there was support for merging routes like Axum, this is especially usefull when breaking down routes in multiple modules.
The feature is well described here https://docs.rs/axum/latest/axum/routing/struct.Router.html#method.merge I tried to replicate the same in poem with nest but it panics complaining about duplicate entries.
nest
In my case for example I'd like to have somethign like this.
mod module_a { fn routes() -> impl Endpoint { todo!() } } mod module_b { fn routes() -> impl Endpoint { todo!() } } let routes_a = module_a::routes(); let routes_b = module_b::routes(); let final_routes = Routes::new() .merge(routes_a) .merge(routes_b) .with(Tracing);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be nice if there was support for merging routes like Axum, this is especially usefull when breaking down routes in multiple modules.
Description of the feature
The feature is well described here https://docs.rs/axum/latest/axum/routing/struct.Router.html#method.merge
I tried to replicate the same in poem with
nest
but it panics complaining about duplicate entries.In my case for example I'd like to have somethign like this.
The text was updated successfully, but these errors were encountered: