Health-Check: Dedizierter Endpunkt /health implementiert
- Neue Route /health für Container-Monitoring - Wird NICHT geloggt oder statistisch ausgewertet - Schnelle JSON-Antwort mit Status und Zeitstempel - Docker Health-Check nutzt jetzt /health statt / - Optimiert für Container-Health-Monitoring
This commit is contained in:
5
app.py
5
app.py
@@ -291,6 +291,11 @@ def screenshot_image():
|
||||
return send_from_directory(Path(__file__).parent, 'screenshot.png', mimetype='image/png')
|
||||
|
||||
|
||||
@app.route('/health')
|
||||
def health_check():
|
||||
"""Health-Check für Docker/Container-Monitoring - wird NICHT geloggt"""
|
||||
return {'status': 'healthy', 'timestamp': datetime.now().isoformat()}
|
||||
|
||||
|
||||
@app.route('/login', methods=['GET', 'POST'])
|
||||
def login():
|
||||
|
Reference in New Issue
Block a user