mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 09:21:04 +00:00
Cleanup
This commit is contained in:
parent
06caf81bd5
commit
f5f64d9890
1 changed files with 2 additions and 6 deletions
|
@ -199,7 +199,6 @@ 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():
|
||||||
|
@ -211,10 +210,7 @@ def create_app(char_limit=-1, req_limit=-1, ga_id=None, debug=False):
|
||||||
# Call factory function to create our blueprint
|
# Call factory function to create our blueprint
|
||||||
swaggerui_blueprint = get_swaggerui_blueprint(
|
swaggerui_blueprint = get_swaggerui_blueprint(
|
||||||
SWAGGER_URL,
|
SWAGGER_URL,
|
||||||
API_URL,
|
API_URL
|
||||||
config={ # Swagger UI config overrides
|
|
||||||
'app_name': "LibreTranslate"
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
app.register_blueprint(swaggerui_blueprint)
|
app.register_blueprint(swaggerui_blueprint)
|
||||||
|
|
Loading…
Reference in a new issue