feat: add Today environment summary
ci / gitleaks (push) Successful in 51s
ci / docker (push) Successful in 4m34s

This commit is contained in:
2026-09-16 12:23:59 +08:00
parent ed6d999ffb
commit 0a4d5f2f05
12 changed files with 1405 additions and 7 deletions
+6
View File
@@ -69,6 +69,7 @@ from .schemas import (
UserOut,
UserUpdate,
)
from .today_environment import get_environment as get_today_environment
@asynccontextmanager
@@ -195,6 +196,11 @@ async def me(user: User = Depends(current_user)):
return user
@app.get("/api/v1/today/environment")
async def today_environment(_: User = Depends(current_user)):
return await get_today_environment()
@app.patch("/api/v1/me", response_model=UserOut)
async def update_me(
payload: UserUpdate,