server: fix duplicate /api/openapi.json route panic
The Swagger UI wiring (6e247eb) registered the OpenAPI spec at
/api/openapi.json, which already had a hand-rolled route, so axum panicked
"Overlapping method route" at build_app time — cascading every integration
test. Point SwaggerUi at /api-docs/openapi.json (outside the /api/docs UI
base, idiomatic) and leave the public /api/openapi.json endpoint intact.
Adds a DB-free regression test mirroring the lib.rs merge.
Co-Authored-By
Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-07-09 02:34 UTC