16 lines
354 B
Python
Raw Normal View History

from __future__ import annotations
from typing import Any
from flask import jsonify
def register(app) -> None:
2026-04-11 00:02:26 -03:00
"""Register the lightweight health endpoint on the Flask app."""
@app.route("/api/healthz")
def healthz() -> Any:
2026-04-11 00:02:26 -03:00
"""Return the basic liveness payload used by probes and tests."""
2026-04-11 00:02:26 -03:00
return jsonify({"ok": True})