Fix route definition for test endpoint in Flask application

This commit is contained in:
Dominik Krenn 2025-06-11 08:03:32 +02:00
parent 27bcdaf46f
commit 6cb6f1505b

2
app.py
View File

@ -6,7 +6,7 @@ app = Flask(__name__)
def index(): def index():
return "Hello, World!" return "Hello, World!"
@app.route('test') @app.route('/test')
def test(): def test():
return jsonify({"message": "This is a test endpoint!"}), 200 return jsonify({"message": "This is a test endpoint!"}), 200