Skip to content

Commit

Permalink
app: set correct version in FastAPI metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
stintel committed Jan 10, 2024
1 parent cccd068 commit 719893a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 719893a

Please sign in to comment.