fix: resolve Axum 0.8 panic by removing root nesting and using fallback_service

This commit is contained in:
2026-02-26 15:19:38 -05:00
parent 99304b681c
commit f0435e4575
2 changed files with 0 additions and 6 deletions

View File

@@ -55,7 +55,6 @@ pub fn router(state: AppState) -> Router {
Router::new() Router::new()
// Static file serving // Static file serving
.nest_service("/", tower_http::services::ServeDir::new("static"))
.fallback_service(tower_http::services::ServeDir::new("static")) .fallback_service(tower_http::services::ServeDir::new("static"))
// WebSocket endpoint // WebSocket endpoint

View File

@@ -118,7 +118,6 @@ async fn main() -> Result<()> {
// Create application router // Create application router
let app = Router::new() let app = Router::new()
.route("/health", get(health_check)) .route("/health", get(health_check))
.route("/", get(root))
.merge(server::router(state.clone())) .merge(server::router(state.clone()))
.merge(dashboard::router(state.clone())); .merge(dashboard::router(state.clone()));
@@ -135,7 +134,3 @@ async fn main() -> Result<()> {
async fn health_check() -> &'static str { async fn health_check() -> &'static str {
"OK" "OK"
} }
async fn root() -> &'static str {
"LLM Proxy Gateway - Unified interface for OpenAI, Gemini, DeepSeek, and Grok"
}