Open derekssmith opened 2 months ago
@derekssmith this is intended to be used with the route groups and base URL settings as described here:
https://huma.rocks/features/bring-your-own-router/#route-groups-base-urls
Typically you'd set up a route group with the /v1
path and then the docs & OpenAPI will be served from there as well. Huma itself doesn't apply any prefix from the server list because it could happen either at the gateway or within the router itself, and this provides the most flexibility for setting up those various scenarios. Hopefully that helps!
When I add servers to the OpenAPI configuration the docs page will not load because the openapi.json call returns a 404.