wire utoipa OpenAPI: #[utoipa::path] on all handlers, Scalar UI (#14)

This commit is contained in:
2026-07-12 14:29:52 +02:00
parent b00272aceb
commit e27e2ab6d1
18 changed files with 651 additions and 48 deletions

View File

@@ -9,6 +9,7 @@ mod extractors;
mod factory;
mod handlers;
mod mappers;
mod openapi;
mod routes;
mod state;
@@ -52,6 +53,7 @@ async fn main() -> anyhow::Result<()> {
let app = axum::Router::new()
.nest("/api/v1", routes::api_v1_router())
.nest("/api", routes::docs_router())
.layer(cors)
.layer(TraceLayer::new_for_http())
.with_state(app_state);