Isolate routes in their module
This commit is contained in:
parent
4d4fab60cb
commit
e459df69bf
2 changed files with 18 additions and 12 deletions
|
|
@ -366,11 +366,7 @@ pub(crate) fn router() -> Router<AppState> {
|
|||
.route("/", get(index))
|
||||
.route("/login", get(oidc_login))
|
||||
.route("/logout", get(logout))
|
||||
.route("/household/select", get(household::household_selection))
|
||||
.route("/household/select/:id", get(household::select_household))
|
||||
.route("/household/create", post(household::create_household))
|
||||
.route("/household/leave", post(household::leave))
|
||||
.route("/household/rename", post(household::rename))
|
||||
.route("/login/redirect/:id", get(oidc_login_finish))
|
||||
.nest("/household", household::routes())
|
||||
.fallback_service(ServeDir::new(public).fallback((|| async { not_found() }).into_service()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue