summaryrefslogtreecommitdiff
path: root/flask/main.py.jinja2
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-02-11 17:37:58 +0100
committerxengineering <mail2xengineering@protonmail.com>2021-02-11 17:37:58 +0100
commitf830274cb0c4f1efec2313f72007741957b86e76 (patch)
tree19aa8036db3f955d48e97b612881fede83966227 /flask/main.py.jinja2
parentbc6b03ab29703dfff857b63727657ca3127eb381 (diff)
downloadweb-template-f830274cb0c4f1efec2313f72007741957b86e76.tar
web-template-f830274cb0c4f1efec2313f72007741957b86e76.tar.zst
web-template-f830274cb0c4f1efec2313f72007741957b86e76.zip
Implement Framework Installation
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)