Skip to content

Commit

Permalink
remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 21, 2024
1 parent 2bd8adb commit 0eff770
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ def static_file_handler(fp: str) -> Response[bytes]:

@litestar.get("/static/{fp:path}", sync_to_thread=True)
def static_file_handler(fp: str) -> Response[bytes]:
print(fp)

# fp is '/...', so we need to remove prefix make it relative
return Response(
static_path.joinpath(fp[1:]).read_bytes(), media_type=mimetypes.guess_type(fp)[0]
Expand Down

0 comments on commit 0eff770

Please sign in to comment.