Add Gitea CI and automatic dev deployment
Main CI / check-and-build (push) Successful in 1m18s
Development CI / check-and-build (push) Successful in 34s
GitHub Git mirror / mirror (push) Successful in 7s
Development CI / deploy-development (push) Successful in 25s

This commit is contained in:
root committed 2026-10-29 21:30:28 +08:00
1 parent 543564a29c
commit b4f29d4966
20 files changed
+1109 -29

No files matched your search

+4 -1
View File
@@ -1,3 +1,5 @@
import os
from fastapi import Depends, FastAPI
from fastapi.exceptions import RequestValidationError
from fastapi.responses import RedirectResponse
@@ -31,7 +33,8 @@ app.include_router(calendar.router)
@app.get("/api/health", include_in_schema=False)
async def health() -> ApiResponse[dict[str, str]]:
return success({"status": "ok"})
return success({"status": "ok", "version": os.environ.get("APP_VERSION", "source"),
"commit": os.environ.get("APP_COMMIT", "unknown")})
@app.get("/api/openapi.json", include_in_schema=False, dependencies=[Depends(require_admin)])