Added Docker and Removed Socket Integration

This commit is contained in:
Azeez Muibi
2025-03-21 08:41:00 +01:00
parent af9a6148a1
commit 167381c62d
9 changed files with 439 additions and 55 deletions
+28
View File
@@ -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"
})