Expose API docs at both /api/docs (Scalar) and /api/swagger (Swagger UI):
- Add Scalar (
@scalar/hono-api-reference) for modern OpenAPI UI
- Add Swagger UI (
@hono/swagger-ui) for compatibility
- Both to consume
/api/openapi.json
- Document both in API overview
Reference:
Expose API docs at both
/api/docs(Scalar) and/api/swagger(Swagger UI):@scalar/hono-api-reference) for modern OpenAPI UI@hono/swagger-ui) for compatibility/api/openapi.jsonReference: