This commit is contained in:
Andras Schmelczer 2022-05-26 21:49:39 +02:00
commit 76cdd7b4c4

View file

@ -139,7 +139,7 @@ class GreatAI(FastAPI):
return get_swagger_ui_html(openapi_url="openapi.json", title=self.title)
@self.get("/docs/index.html", include_in_schema=False)
def redirect_to_entrypoint() -> RedirectResponse:
def redirect_to_docs() -> RedirectResponse:
return RedirectResponse("/docs")
if not disable_metrics: