summaryrefslogtreecommitdiff
path: root/flask/main.py.jinja2
diff options
context:
space:
mode:
Diffstat (limited to 'flask/main.py.jinja2')
-rwxr-xr-xflask/main.py.jinja25
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)