Skip to content

Commit 735f201

Browse files
committed
removed html return
1 parent ea020b8 commit 735f201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/api/components/betting/controller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def handle_post():
4141
return Response(f"""something went wrong with inserting the bet in the database"""
4242
, 500)
4343
else:
44-
return render_template("notallowed.html")
44+
return Response("Only posts are allowed right now", 400)
4545

4646
@betting_api.route("/datatest", methods=["GET", "POST", "PUT"])
4747
def handle_test():

0 commit comments

Comments
 (0)