diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-02-11 17:37:58 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-02-11 17:37:58 +0100 |
commit | f830274cb0c4f1efec2313f72007741957b86e76 (patch) | |
tree | 19aa8036db3f955d48e97b612881fede83966227 /flask/main.py.jinja2 | |
parent | bc6b03ab29703dfff857b63727657ca3127eb381 (diff) | |
download | web-template-f830274cb0c4f1efec2313f72007741957b86e76.tar web-template-f830274cb0c4f1efec2313f72007741957b86e76.tar.zst web-template-f830274cb0c4f1efec2313f72007741957b86e76.zip |
Implement Framework Installation
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) |