mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 09:21:04 +00:00
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():
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue