hack-house/.venv/lib/python3.12/site-packages/sanic_ext/extensions/health/endpoint.py
leetcrypt bb1d662ee1 chore: rename project coven → hack-house ⛧
Rebrand the Rust client crate (coven/ → hh/, package+binary "hack-house"),
README, CLI strings, and branch (coven → hack-house). Gitea repo renamed
cmd-chat → hack-house to match. Crypto/server logic unchanged; selftest +
golden-vector test still green, binary is now `hack-house`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 13:29:14 -07:00

14 lines
421 B
Python

from sanic import Blueprint, Request, Sanic
from sanic.response import json
from sanic.worker.inspector import Inspector
def setup_health_endpoint(app: Sanic) -> None:
bp = Blueprint("SanicHealth", url_prefix=app.config.HEALTH_URL_PREFIX)
@bp.get(app.config.HEALTH_URI_TO_INFO)
async def info(request: Request):
return json(Inspector._make_safe(dict(request.app.m.workers)))
app.blueprint(bp)