Fix route definition for test endpoint in Flask application
This commit is contained in:
parent
27bcdaf46f
commit
6cb6f1505b
2
app.py
2
app.py
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user