Expose /languages as both GET and POST

This commit is contained in:
Piero Toffanin 2021-02-10 13:06:11 -05:00
parent 9434ee83b5
commit 3987200f05

View file

@ -71,7 +71,7 @@ def create_app(char_limit=-1, req_limit=-1, batch_limit=-1, ga_id=None, debug=Fa
def index():
return render_template('index.html', gaId=ga_id, frontendTimeout=frontend_timeout, offline=offline)
@app.route("/languages")
@app.route("/languages", methods=['GET', 'POST'])
def langs():
"""
Retrieve list of supported languages