2026-02-14 16:56:10 +00:00
|
|
|
from flask import Blueprint, jsonify
|
|
|
|
|
|
2026-02-24 16:19:15 +00:00
|
|
|
health_bp = Blueprint("health", __name__)
|
2026-02-14 16:56:10 +00:00
|
|
|
|
|
|
|
|
|
2026-02-24 16:19:15 +00:00
|
|
|
@health_bp.route("/", methods=["GET"])
|
2026-02-14 16:56:10 +00:00
|
|
|
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-14 16:56:10 +00:00
|
|
|
|
|
|
|
|
|
2026-02-24 16:19:15 +00:00
|
|
|
@health_bp.route("/readiness", methods=["GET"])
|
2026-02-14 16:56:10 +00:00
|
|
|
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
|