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

22 lines
No EOL
528 B
Python

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