We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49a7860 commit fca4303Copy full SHA for fca4303
1 file changed
backend/api.py
@@ -231,8 +231,7 @@ async def read_root():
231
"""Serve the main HTML page."""
232
html_path = Path(__file__).parent / "static" / "index.html"
233
if html_path.exists():
234
- with open(html_path) as f:
235
- return HTMLResponse(content=f.read())
+ return HTMLResponse(content=html_path.read_text(encoding="utf-8"))
236
return HTMLResponse(
237
content="<h1>VinylFlow</h1><p>Frontend not found. Please create static/index.html</p>"
238
)
0 commit comments