docs: add Agent API docs, OpenAPI field descriptions, and project context files
This commit is contained in:
+7
-1
@@ -57,7 +57,12 @@ async def lifespan(app: FastAPI):
|
||||
yield
|
||||
|
||||
|
||||
app = FastAPI(title="TakeYourMeds", version=settings.app_version, lifespan=lifespan)
|
||||
app = FastAPI(
|
||||
title="TakeYourMeds",
|
||||
description="Persönliche Medikamenten-PWA mit Push-Erinnerungen, Einnahme-Logging und Agent-API.",
|
||||
version=settings.app_version,
|
||||
lifespan=lifespan,
|
||||
)
|
||||
app.add_middleware(CacheControlMiddleware)
|
||||
|
||||
# API routers
|
||||
@@ -70,6 +75,7 @@ app.include_router(stats.router)
|
||||
app.include_router(health.router)
|
||||
app.include_router(agent.router)
|
||||
|
||||
|
||||
# Backwards-compatible VAPID endpoint used by older clients
|
||||
@app.get("/api/vapid-public-key")
|
||||
async def vapid_public_key_legacy() -> JSONResponse:
|
||||
|
||||
Reference in New Issue
Block a user