Jensen-holm commited on
Commit
7bbc9dd
·
1 Parent(s): 066de16

re adding the get request again

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -27,8 +27,10 @@ def not_valid(params: dict):
27
  return False
28
 
29
 
30
- @app.route("/", methods=["POST"])
31
  def index():
 
 
32
 
33
  error_message = not_valid(params=request.json)
34
  if error_message:
 
27
  return False
28
 
29
 
30
+ @app.route("/", methods=["POST", "GET"])
31
  def index():
32
+ if request.method == "GET":
33
+ return render_template("index.html")
34
 
35
  error_message = not_valid(params=request.json)
36
  if error_message: