advent22/api/advent22_api/app.py

23 lines
541 B
Python
Raw Normal View History

2022-10-08 23:36:16 +00:00
from fastapi import FastAPI
2022-10-09 00:18:15 +00:00
from .routers import router
2022-10-08 23:36:16 +00:00
from .settings import SETTINGS
app = FastAPI(
title="Advent22 API",
description="This API enables the `Advent22` service.",
contact={
"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,
redoc_url=SETTINGS.redoc_url,
)
2022-10-09 00:18:15 +00:00
app.include_router(router)