Closed marcelogp closed 1 year ago
Hey @marcelogp i've just added support for disabling or changing the path for all theses routes in the latest release (v0.1.0)
You can see the new options in here
In order to disable them you just need to pass these parameters as null
@G4brym the link mentioned does not work unfortunately. How should I disable this?
https://github.com/cloudflare/itty-router-openapi/blob/main/src/types.ts#L19-L21
I assume just ;-)
const router = OpenAPIRouter({
docs_url: null,
redoc_url: null,
openapi_url: null,
})
Hello. I would like to control whether
/docs
and/redocs
and/openapi.json
endpoints are enabled or not. I see in the code the check below but it doesn't seem possible to passopenapiConfig
asundefined
.https://github.com/cloudflare/itty-router-openapi/blob/main/src/openapi.ts#L103