1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-10-05 19:00:14 +02:00

/languages should be only available for GET

This commit is contained in:
Sébastien Thuret 2022-04-03 13:17:13 +02:00
parent 2bbf17b835
commit d7377d174b
No known key found for this signature in database
GPG Key ID: 230B93BBA62CB043

View File

@ -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():
"""