Update backend/app/routers/prism_static.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Alexa Amundson
2025-11-17 22:26:41 -06:00
committed by GitHub
parent 3064064e11
commit 61e51e9deb

View File

@@ -74,7 +74,6 @@ async def serve_prism_static_files(file_path: str):
This endpoint handles all asset requests for the Prism Console UI. This endpoint handles all asset requests for the Prism Console UI.
""" """
# Security: Prevent directory traversal # Security: Prevent directory traversal
safe_path = Path(file_path).resolve()
requested_file = PRISM_DIR / file_path requested_file = PRISM_DIR / file_path
# Ensure the requested file is within the prism directory # Ensure the requested file is within the prism directory