Nest user routes, like with auth
This commit is contained in:
parent
e275d0b71f
commit
f7972b4365
1 changed files with 6 additions and 2 deletions
|
@ -13,7 +13,11 @@ use super::AppState;
|
|||
|
||||
pub fn requests(state: AppState) -> Router {
|
||||
Router::new()
|
||||
.route("/user", post(user_registration_post_handler))
|
||||
.route("/user/:user_id/verify", get(user_verification_get_handler))
|
||||
.nest(
|
||||
"/user",
|
||||
Router::new()
|
||||
.route("/", post(user_registration_post_handler))
|
||||
.route("/:user_id/verify", get(user_verification_get_handler)),
|
||||
)
|
||||
.with_state(state.clone())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue