fix: remove duplicate docs route registration to prevent panic

Co-authored-by: aider (openai/andrew/openrouter/google/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-13 12:43:14 -03:00
parent 8501154084
commit d8e864c353

View File

@@ -14,7 +14,6 @@ use tower_http::trace::TraceLayer;
mod common; mod common;
mod api; mod api;
mod docs;
mod pages; mod pages;
pub use common::{ServerConfig, AppState, logging_middleware}; pub use common::{ServerConfig, AppState, logging_middleware};
@@ -66,7 +65,6 @@ async fn run_server(
// Add API, documentation, and pages routes // Add API, documentation, and pages routes
let app = api::add_routes(app); let app = api::add_routes(app);
let app = api::add_docs_routes(app); let app = api::add_docs_routes(app);
let app = docs::add_routes(app);
let app = pages::add_routes(app); let app = pages::add_routes(app);
// Apply state to the router after all routes are added // Apply state to the router after all routes are added