From d7377d174b5ae1a91f7a8fb375108123ddbc68b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Thuret?= Date: Sun, 3 Apr 2022 13:17:13 +0200 Subject: [PATCH] /languages should be only available for GET --- app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index 428de95..a06b1f1 100644 --- a/app/app.py +++ b/app/app.py @@ -239,7 +239,7 @@ def create_app(args): return render_template("javascript-licenses.html") - @app.route("/languages", methods=["GET", "POST"]) + @app.get("/languages") @limiter.exempt def langs(): """