BasicHfBot / bot /server /routes.py
understanding's picture
Create routes.py
2e1e1ba verified
raw
history blame contribute delete
246 Bytes
# PATH: bot/server/routes.py
from quart import Blueprint
bp = Blueprint("main", __name__)
@bp.get("/")
async def home():
return "OK: HF Webserver + Hydrogram running", 200
@bp.get("/health")
async def health():
return {"ok": True}, 200