From b06744092365194b30b951c1f60d559bd178a616 Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Mon, 13 Jul 2020 23:10:20 +0200 Subject: added basePath --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 63f680c..0be9296 100644 --- a/main.py +++ b/main.py @@ -32,9 +32,10 @@ def create_app(test_config=None): template = dict( swaggerUiPrefix=LazyString(lambda: request.environ.get('HTTP_X_SCRIPT_NAME', '')), - schemes=[LazyString(lambda: 'https' if request.is_secure else 'http')], + schemes=['https', 'http'], version='1', host=LazyString(lambda: request.host), + basePath='/', info={ 'title': 'Mat2 Web API', 'version': '1', -- cgit v1.3