diff --git a/app/main.py b/app/main.py index 33cc373..f852ee9 100644 --- a/app/main.py +++ b/app/main.py @@ -31,6 +31,7 @@ build_msg, get_tz_config, ) +from app.settings import get_settings from .internal.client import Client from .internal.connmgr import ConnMgr @@ -50,12 +51,14 @@ level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S') +settings = get_settings() + app = FastAPI(title="Willow Application Server", description="Willow Management API", - version="0.1", openapi_url="/openapi.json", docs_url="/docs", - redoc_url="/redoc") + redoc_url="/redoc", + version=settings.was_version) log = logging.getLogger("WAS") try: