From f830274cb0c4f1efec2313f72007741957b86e76 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 11 Feb 2021 17:37:58 +0100 Subject: Implement Framework Installation --- flask/main.py.jinja2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'flask/main.py.jinja2') 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) -- cgit v1.2.3-70-g09d2