feat: add HTML endpoints for item listing and details pages
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -15,6 +15,7 @@ use tower_http::trace::TraceLayer;
|
||||
mod common;
|
||||
mod api;
|
||||
mod docs;
|
||||
mod pages;
|
||||
|
||||
pub use common::{ServerConfig, AppState, logging_middleware};
|
||||
|
||||
@@ -62,9 +63,10 @@ async fn run_server(
|
||||
.layer(CorsLayer::permissive())
|
||||
);
|
||||
|
||||
// Add API and documentation routes
|
||||
// Add API, documentation, and pages routes
|
||||
let app = api::add_routes(app);
|
||||
let app = docs::add_routes(app);
|
||||
let app = pages::add_routes(app);
|
||||
|
||||
// Apply state to the router after all routes are added
|
||||
let app = app.with_state(state);
|
||||
|
||||
Reference in New Issue
Block a user