2026-01-01 23:17:19 -03:00
|
|
|
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."""
|
|
|
|
|
|
2026-01-01 23:17:19 -03:00
|
|
|
@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-01-01 23:17:19 -03:00
|
|
|
|
2026-04-11 00:02:26 -03:00
|
|
|
return jsonify({"ok": True})
|