add license information to FastAPI object

This commit is contained in:
Jörn-Michael Miehe 2022-09-05 21:36:07 +00:00
parent c074bac3c8
commit a069fe5078

View file

@ -19,6 +19,10 @@ app = FastAPI(
"name": "Jörn-Michael Miehe",
"email": "jmm@yavook.de",
},
license_info={
"name": "MIT License",
"url": "https://opensource.org/licenses/mit-license.php",
},
openapi_url=SETTINGS.openapi_url,
docs_url=SETTINGS.docs_url if not SETTINGS.production_mode else None,
redoc_url=SETTINGS.redoc_url if not SETTINGS.production_mode else None,