From aa56e70fc0105628fa835e6f9f8c877763075b28 Mon Sep 17 00:00:00 2001 From: Francesco Luzzana Date: Thu, 30 Jun 2022 16:15:17 +0200 Subject: [PATCH] trailing slash api --- pad-bis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pad-bis.py b/pad-bis.py index 460bb9c..4afcd85 100644 --- a/pad-bis.py +++ b/pad-bis.py @@ -102,7 +102,7 @@ def get_pads(): def home(): return render_template('home.html') -@app.route('/api/', methods=['GET', 'POST']) +@app.route('/api', methods=['GET', 'POST']) def api(): if request.method == 'POST':