eli02 commited on
Commit
a04b514
·
1 Parent(s): 09a99e8

Update index endpoint to serve HTML from new file path

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -124,7 +124,7 @@ app.mount("/home", StaticFiles(directory="static", html=True), name="home")
124
  # Root endpoint
125
  @app.get("/")
126
  def index() -> FileResponse:
127
- return FileResponse(path="static/index.html", media_type="text/html")
128
 
129
  # Login endpoint to issue tokens
130
  @app.post("/login", response_model=TokenResponse)
 
124
  # Root endpoint
125
  @app.get("/")
126
  def index() -> FileResponse:
127
+ return FileResponse(path="/app/home/index.html", media_type="text/html")
128
 
129
  # Login endpoint to issue tokens
130
  @app.post("/login", response_model=TokenResponse)