diff --git a/deepaas/api/__init__.py b/deepaas/api/__init__.py index ae9a3d71..be07064f 100644 --- a/deepaas/api/__init__.py +++ b/deepaas/api/__init__.py @@ -103,6 +103,7 @@ async def get_app( if swagger: doc = str(pathlib.Path(base_path + doc)) swagger = str(pathlib.Path(base_path + "/swagger.json")) + static_path = str(pathlib.Path(base_path + static_path)) # init docs with all parameters, usual for ApiSpec aiohttp_apispec.setup_aiohttp_apispec( @@ -115,7 +116,6 @@ async def get_app( "description": "API documentation", "url": "https://deepaas.readthedocs.org/", }, - basePath=base_path, version=deepaas.extract_version(), url=swagger, swagger_path=doc if enable_doc else None,