diff options
Diffstat (limited to 'flask/main.py.jinja2')
-rwxr-xr-x | flask/main.py.jinja2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/flask/main.py.jinja2 b/flask/main.py.jinja2 index 1e1a653..7128948 100755 --- a/flask/main.py.jinja2 +++ b/flask/main.py.jinja2 @@ -28,6 +28,11 @@ from flask import Flask, request, jsonify app = Flask(__name__) +@app.route('/', methods=['GET']) +def hello(): + return "API is working!" + + @app.route('/', methods=['POST']) def api(): data = request.get_json(force=True) |