diff --git a/backend/src/frontend/recipes_tab.rs b/backend/src/frontend/recipes_tab.rs index abf6b0f..31c6fda 100644 --- a/backend/src/frontend/recipes_tab.rs +++ b/backend/src/frontend/recipes_tab.rs @@ -19,6 +19,7 @@ pub(crate) fn recipes_router() -> axum::Router { "/delete_nqa/:recipe_id", axum::routing::delete(delete_recipe_nqa), ) + .nest("/edit/", recipes_edit_tab::recipes_edit_router()) .route_layer(RequireAuthorizationLayer::::login_or_redirect( Arc::new(LOGIN_URL.into()), None, @@ -34,7 +35,6 @@ pub(crate) fn recipes_router() -> axum::Router { axum::routing::get(export_recipe_pdf), ) .route("/", axum::routing::get(recipes_view)) - .nest("/edit/", recipes_edit_tab::recipes_edit_router()) } #[derive(Deserialize)]