15 lines
314 B
Python
15 lines
314 B
Python
|
|
"""Health endpoint — no DB dependency, used by orchestrators and the SPA."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from flask import Blueprint, jsonify
|
||
|
|
|
||
|
|
from app import __version__
|
||
|
|
|
||
|
|
bp = Blueprint("health", __name__)
|
||
|
|
|
||
|
|
|
||
|
|
@bp.get("/health")
|
||
|
|
def health():
|
||
|
|
return jsonify({"status": "ok", "version": __version__})
|