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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user