Add optional token-less health check endpoint

This commit is contained in:
vvzvlad
2025-02-07 00:24:32 +03:00
parent b5b7375e76
commit c9c7c35b4d
+1
View File
@@ -389,6 +389,7 @@ async def get_post(channel: str, post_id: int, token: str | None = None):
raise HTTPException(status_code=500, detail=error_message) from e
@app.get("/health")
@app.get("/health/{token}")
async def health_check(token: str | None = None):
if Config["token"]: