From 5e47ad772972d1c05f6d9c83c1af397ad616f92a Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 12 Jun 2023 15:13:53 +0200 Subject: [PATCH] fastapi openapi url --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index f4ab600..5cc14e4 100644 --- a/app/main.py +++ b/app/main.py @@ -30,7 +30,8 @@ TZ = datetime.now().astimezone().tzinfo # fetch version info VERSION, COMMIT, DEBUG = env('VERSION', 'unknown'), env('COMMIT', 'unknown'), bool(env('DEBUG', False)) -config = dict(openapi_url=None, docs_url=None, redoc_url=None) # dict(openapi_url='/-/openapi.json', docs_url='/-/docs', redoc_url='/-/redoc') +# fastapi setup +config = dict(openapi_url='/-/openapi.json', docs_url=None, redoc_url=None) app = FastAPI(title='FastAPI-DLS', description='Minimal Delegated License Service (DLS).', version=VERSION, **config) # database setup