Fix static file path in index endpoint
Browse files
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="
|
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="static/index.html", media_type="text/html")
|
128 |
|
129 |
# Login endpoint to issue tokens
|
130 |
@app.post("/login", response_model=TokenResponse)
|