INNER CODE UNIT · Python
health_check
philippemerle/KubeDiagrams · webapp/backend/app.py:21
def health_check():
"""Health check endpoint for monitoring and testing."""
return jsonify({
'status': 'healthy',
'service': 'kubediagrams-backend',
'version': '1.0.0'
}), 200
# Debug endpoint for IP testing
@app.route('/api/debug/ip', methods=['GET'])
def debug_ip():
"""
Debug endpoint to check IP detection.
Returns all IP-related information for debugging proxy configuration.
"""
return jsonify({
'detected_ip': get_real_ip(),
'remote_addr': request.remote_addr,