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:
Andrew Phillips
2025-08-12 16:37:15 -03:00
parent 6ec8e7a669
commit d4c3f5a090
2 changed files with 196 additions and 1 deletions

View File

@@ -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);