feat: add independent dashboard health endpoint (#26)
This commit is contained in:
1 parent
fef8480e5f
commit
20a6820d9a
2 files changed
+12
No files matched your search
@@ -21,6 +21,12 @@ app.add_middleware(
|
||||
app.include_router(frontend_router)
|
||||
|
||||
|
||||
@app.get("/healthz")
|
||||
def health() -> dict[str, str]:
|
||||
"""Return process liveness without depending on Gitea."""
|
||||
return {"status": "ok", "service": "stackchain-dashboard"}
|
||||
|
||||
|
||||
@app.get("/api/v1/context")
|
||||
async def context() -> JSONResponse:
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user