Skip to content

Commit

Permalink
feat: resp 404 for not found path
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Oct 7, 2023
1 parent e9e9d6c commit 35eba4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions free_one_api/impls/router/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ async def index():

@self.api("/<path:path>", ["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)

0 comments on commit 35eba4b

Please sign in to comment.