-
similar to actix, something like: let app = Router::new()
.scope("/user",
route("/", get(get_user).post(create_user))
.route("/:id", patch(update_user).delete(delete_user))
); |
Beta Was this translation helpful? Give feedback.
Answered by
jplatte
May 30, 2024
Replies: 1 comment 1 reply
-
It's a thing, just has a different name: https://docs.rs/axum/latest/axum/struct.Router.html#method.nest |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jplatte
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a thing, just has a different name: https://docs.rs/axum/latest/axum/struct.Router.html#method.nest