From 267ab6ad6848757b8cc0a2dfb58e15c80ec0de28 Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Garcia Date: Fri, 9 Aug 2024 11:56:59 +0200 Subject: [PATCH] fix: also serve static_path from base_path Fixes #111 --- deepaas/api/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deepaas/api/__init__.py b/deepaas/api/__init__.py index d3bff6a..ec0fee8 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(