From f0435e457505504c42dd5e0fda24705e0c595d08 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 26 Feb 2026 15:19:38 -0500 Subject: [PATCH] fix: resolve Axum 0.8 panic by removing root nesting and using fallback_service --- src/dashboard/mod.rs | 1 - src/main.rs | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/dashboard/mod.rs b/src/dashboard/mod.rs index 0079e538..84b6d007 100644 --- a/src/dashboard/mod.rs +++ b/src/dashboard/mod.rs @@ -55,7 +55,6 @@ pub fn router(state: AppState) -> Router { Router::new() // Static file serving - .nest_service("/", tower_http::services::ServeDir::new("static")) .fallback_service(tower_http::services::ServeDir::new("static")) // WebSocket endpoint diff --git a/src/main.rs b/src/main.rs index a5740d46..4040de7e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,7 +118,6 @@ async fn main() -> Result<()> { // Create application router let app = Router::new() .route("/health", get(health_check)) - .route("/", get(root)) .merge(server::router(state.clone())) .merge(dashboard::router(state.clone())); @@ -135,7 +134,3 @@ async fn main() -> Result<()> { async fn health_check() -> &'static str { "OK" } - -async fn root() -> &'static str { - "LLM Proxy Gateway - Unified interface for OpenAI, Gemini, DeepSeek, and Grok" -}