mirror of
https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
synced 2024-11-14 18:38:56 +00:00
fastapi openapi url
This commit is contained in:
parent
20448bc587
commit
5e47ad7729
@ -30,7 +30,8 @@ TZ = datetime.now().astimezone().tzinfo
|
|||||||
# fetch version info
|
# fetch version info
|
||||||
VERSION, COMMIT, DEBUG = env('VERSION', 'unknown'), env('COMMIT', 'unknown'), bool(env('DEBUG', False))
|
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)
|
app = FastAPI(title='FastAPI-DLS', description='Minimal Delegated License Service (DLS).', version=VERSION, **config)
|
||||||
|
|
||||||
# database setup
|
# database setup
|
||||||
|
Loading…
Reference in New Issue
Block a user