api: serve openapi spec under /api path

This commit is contained in:
lilly 2026-05-14 20:32:59 +02:00
commit 196e759487
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -48,6 +48,7 @@ async def lifespan(app: FastAPI):
app = FastAPI(
title="Dooris",
summary="Server to interact with CCCHH doors via locks over CCUJACK over HomeMatic over WiFi",
openapi_url="/api/openapi.json",
docs_url="/api/docs",
lifespan=lifespan,
)