From 35eba4b526a2d8ef7fcaafb6ac55a367bcf0c8db Mon Sep 17 00:00:00 2001 From: Junyan Qin <1010553892@qq.com> Date: Sat, 7 Oct 2023 11:23:18 +0000 Subject: [PATCH] feat: resp 404 for not found path --- free_one_api/impls/router/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/free_one_api/impls/router/web.py b/free_one_api/impls/router/web.py index 01a8da5..51ff170 100644 --- a/free_one_api/impls/router/web.py +++ b/free_one_api/impls/router/web.py @@ -43,6 +43,6 @@ async def index(): @self.api("/", ["GET"]) async def static_proxy(path): - if not os.path.exists(os.path.join(self.frontend_path, path)): - return await quart.send_from_directory(self.frontend_path, "index.html") + # if not os.path.exists(os.path.join(self.frontend_path, path)): + # return await quart.send_from_directory(self.frontend_path, "index.html") return await quart.send_from_directory(self.frontend_path, path)