diff options
| author | Jan Friedli | 2020-07-13 23:10:20 +0200 |
|---|---|---|
| committer | Jan Friedli | 2020-07-13 23:10:20 +0200 |
| commit | b06744092365194b30b951c1f60d559bd178a616 (patch) | |
| tree | 452a5cb0d24aad3176a9418ccdbd2d269a9fa170 /main.py | |
| parent | 2e6126e7c4ba8132b73e6fb4a2c7ad55109e7664 (diff) | |
added basePath
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -32,9 +32,10 @@ def create_app(test_config=None): | |||
| 32 | 32 | ||
| 33 | template = dict( | 33 | template = dict( |
| 34 | swaggerUiPrefix=LazyString(lambda: request.environ.get('HTTP_X_SCRIPT_NAME', '')), | 34 | swaggerUiPrefix=LazyString(lambda: request.environ.get('HTTP_X_SCRIPT_NAME', '')), |
| 35 | schemes=[LazyString(lambda: 'https' if request.is_secure else 'http')], | 35 | schemes=['https', 'http'], |
| 36 | version='1', | 36 | version='1', |
| 37 | host=LazyString(lambda: request.host), | 37 | host=LazyString(lambda: request.host), |
| 38 | basePath='/', | ||
| 38 | info={ | 39 | info={ |
| 39 | 'title': 'Mat2 Web API', | 40 | 'title': 'Mat2 Web API', |
| 40 | 'version': '1', | 41 | 'version': '1', |
