Added Docker and Removed Socket Integration
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
"""
|
||||
Controller for health check endpoint.
|
||||
"""
|
||||
from flask import Blueprint, jsonify
|
||||
from flask.typing import ResponseReturnValue
|
||||
import logging
|
||||
|
||||
# Configure logger
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Create blueprint
|
||||
health_bp = Blueprint('health', __name__)
|
||||
|
||||
|
||||
@health_bp.route('/health', methods=['GET'])
|
||||
def health_check() -> ResponseReturnValue:
|
||||
"""
|
||||
Endpoint to check API health.
|
||||
|
||||
This endpoint is used by Docker healthcheck and monitoring systems.
|
||||
|
||||
Returns:
|
||||
JSON response with health status
|
||||
"""
|
||||
return jsonify({
|
||||
"status": "healthy",
|
||||
"version": "1.0.0"
|
||||
})
|
||||
Reference in New Issue
Block a user