Skip to content
Snippets Groups Projects
Commit 3987200f authored by Piero Toffanin's avatar Piero Toffanin
Browse files

Expose /languages as both GET and POST

parent 9434ee83
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ def create_app(char_limit=-1, req_limit=-1, batch_limit=-1, ga_id=None, debug=Fa ...@@ -71,7 +71,7 @@ def create_app(char_limit=-1, req_limit=-1, batch_limit=-1, ga_id=None, debug=Fa
def index(): def index():
return render_template('index.html', gaId=ga_id, frontendTimeout=frontend_timeout, offline=offline) return render_template('index.html', gaId=ga_id, frontendTimeout=frontend_timeout, offline=offline)
@app.route("/languages") @app.route("/languages", methods=['GET', 'POST'])
def langs(): def langs():
""" """
Retrieve list of supported languages Retrieve list of supported languages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment