📚 Improved backend configuration and added test file 🎉
This commit is contained in:
31
backend/test_flask_minimal.py
Normal file
31
backend/test_flask_minimal.py
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Minimaler Flask-Test für Grundfunktionalität
|
||||
Nur zum Testen der grundlegenden Flask-Installation
|
||||
"""
|
||||
|
||||
from flask import Flask, jsonify
|
||||
import sys
|
||||
import os
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
return jsonify({
|
||||
"status": "ok",
|
||||
"message": "Flask läuft",
|
||||
"python_version": sys.version,
|
||||
"flask_version": "3.1.1",
|
||||
"working_directory": os.getcwd()
|
||||
})
|
||||
|
||||
@app.route('/health')
|
||||
def health():
|
||||
return jsonify({"status": "healthy", "service": "MYP Flask Test"})
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("🚀 Starte minimalen Flask-Test...")
|
||||
print("📍 URL: http://localhost:5000")
|
||||
print("🔍 Health-Check: http://localhost:5000/health")
|
||||
app.run(host='0.0.0.0', port=5000, debug=True)
|
Reference in New Issue
Block a user