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 0722ae0 commit c32a1a1
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 @@ -29,6 +29,7 @@
from app.internal.command_endpoints.main import init_command_endpoint
from app.internal.was import (
build_msg,
get_settings,
get_tz_config,
)

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 c32a1a1

Please sign in to comment.