Login
You're viewing the mastodon.jamesoff.net public feed.
  • James Sewardjamesoff
    Mar 17, 2026, 4:18 PM

    guess where this code came from

    Python code snippet, which I have reviewed with the comment "Magic!". The code sets up a healthcheck handler which unconditionally responds with "healthy".

The code reads:
@app.get("/health")
def health():
    return {"status": "healthy" }
    💬 0🔄 0⭐ 2