From a069fe5078e1fd63c5ddf9efd628b9379d9b803e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Mon, 5 Sep 2022 21:36:07 +0000 Subject: [PATCH] add license information to FastAPI object --- api/ovdashboard_api/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/ovdashboard_api/main.py b/api/ovdashboard_api/main.py index 5dcbb92..be43aa7 100644 --- a/api/ovdashboard_api/main.py +++ b/api/ovdashboard_api/main.py @@ -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,