add license information to FastAPI object
This commit is contained in:
parent
c074bac3c8
commit
a069fe5078
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue