From 06caf81bd50915d1b0e7c367bb5b4a14740aa734 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 20 Dec 2020 17:11:06 -0500 Subject: [PATCH] Remove swag definition --- app/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.py b/app/app.py index bb280f3..2fb7eff 100644 --- a/app/app.py +++ b/app/app.py @@ -199,6 +199,7 @@ def create_app(char_limit=-1, req_limit=-1, ga_id=None, debug=False): swag = swagger(app) swag['info']['version'] = "1.0" swag['info']['title'] = "LibreTranslate" + print(swag) @app.route("/spec") def spec(): @@ -206,14 +207,13 @@ def create_app(char_limit=-1, req_limit=-1, ga_id=None, debug=False): SWAGGER_URL = '/docs' # URL for exposing Swagger UI (without trailing '/') API_URL = '/spec' - + # Call factory function to create our blueprint swaggerui_blueprint = get_swaggerui_blueprint( SWAGGER_URL, API_URL, config={ # Swagger UI config overrides - 'app_name': "LibreTranslate", - "spec": swag + 'app_name': "LibreTranslate" } )