summaryrefslogtreecommitdiff
path: root/flask
diff options
context:
space:
mode:
Diffstat (limited to 'flask')
-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)