added basePath

This commit is contained in:
Jan Friedli 2020-07-13 23:10:20 +02:00
parent 2e6126e7c4
commit b067440923
No known key found for this signature in database
GPG Key ID: F945FA2FCA30549D

View File

@ -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',