From 6eb0d9060b97dfdba8facdcd8345003b4aa8a162 Mon Sep 17 00:00:00 2001 From: GW_MC <72297530+GWMCwing@users.noreply.github.com> Date: Mon, 29 Dec 2025 17:24:50 +0800 Subject: [PATCH] fix: path not starting with / --- apps/api/src/routes/api/restricted/nginx/upstream.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/routes/api/restricted/nginx/upstream.rs b/apps/api/src/routes/api/restricted/nginx/upstream.rs index 14e18fd..2ec6f0b 100644 --- a/apps/api/src/routes/api/restricted/nginx/upstream.rs +++ b/apps/api/src/routes/api/restricted/nginx/upstream.rs @@ -9,10 +9,10 @@ use crate::routes::AppState; pub fn get_upstream_router(state: Arc) -> Router { Router::new() - .route("upstreams", get(get_upstream::get_upstream_list)) - .route("upstreams/{upstream_id}", get(get_upstream::get_upstream)) + .route("/upstreams", get(get_upstream::get_upstream_list)) + .route("/upstreams/{upstream_id}", get(get_upstream::get_upstream)) .route( - "upstream_targets/{upstream_target_id}", + "/upstream_targets/{upstream_target_id}", get(get_upstream_target::get_upstream_target), ) .with_state(state)