mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 23:41:01 +00:00
Remove swag definition
This commit is contained in:
parent
e496d85a04
commit
06caf81bd5
1 changed files with 3 additions and 3 deletions
|
@ -199,6 +199,7 @@ def create_app(char_limit=-1, req_limit=-1, ga_id=None, debug=False):
|
||||||
swag = swagger(app)
|
swag = swagger(app)
|
||||||
swag['info']['version'] = "1.0"
|
swag['info']['version'] = "1.0"
|
||||||
swag['info']['title'] = "LibreTranslate"
|
swag['info']['title'] = "LibreTranslate"
|
||||||
|
print(swag)
|
||||||
|
|
||||||
@app.route("/spec")
|
@app.route("/spec")
|
||||||
def spec():
|
def spec():
|
||||||
|
@ -212,8 +213,7 @@ def create_app(char_limit=-1, req_limit=-1, ga_id=None, debug=False):
|
||||||
SWAGGER_URL,
|
SWAGGER_URL,
|
||||||
API_URL,
|
API_URL,
|
||||||
config={ # Swagger UI config overrides
|
config={ # Swagger UI config overrides
|
||||||
'app_name': "LibreTranslate",
|
'app_name': "LibreTranslate"
|
||||||
"spec": swag
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue