forked from mirrors/LibreTranslate
Expose /languages as both GET and POST
This commit is contained in:
parent
9434ee83b5
commit
3987200f05
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue