Module routes

Module routes 

Source
Expand description

Axum router registration: maps every /api/v1/ path to its handler.

The OpenAPI JSON spec is served at GET /openapi.json and the Swagger UI is served at GET /docs. The /api/v1/auth/* sub-router carries its own defensive layers (rate limit, body redaction) — see crate::server::auth_middleware.

Functions§

build_router
Build the axum router with all API endpoints and OpenAPI doc routes.