kanban-app/backend/app/routes/health.py

17 lines
485 B
Python
Raw Normal View History

from flask import Blueprint, jsonify
2026-02-24 16:19:15 +00:00
health_bp = Blueprint("health", __name__)
2026-02-24 16:19:15 +00:00
@health_bp.route("/", methods=["GET"])
def health_check():
"""Health check endpoint"""
2026-02-24 16:19:15 +00:00
return jsonify({"status": "healthy", "service": "crafting-shop-backend"}), 200
2026-02-24 16:19:15 +00:00
@health_bp.route("/readiness", methods=["GET"])
def readiness_check():
"""Readiness check endpoint"""
# Add database check here if needed
2026-02-24 16:19:15 +00:00
return jsonify({"status": "ready", "service": "crafting-shop-backend"}), 200