nicehero
commited on
Commit
·
383fff6
1
Parent(s):
7845543
main.py
Browse files
main.py
CHANGED
@@ -35,6 +35,8 @@ async def log_error(request: Request):
|
|
35 |
|
36 |
return response.text, response.status_code, response.headers.items()
|
37 |
|
|
|
|
|
38 |
@app.get("/")
|
39 |
def index() -> FileResponse:
|
40 |
return FileResponse(path="/app/static/index.html", media_type="text/html")
|
|
|
35 |
|
36 |
return response.text, response.status_code, response.headers.items()
|
37 |
|
38 |
+
app.mount("/", StaticFiles(directory="static", html=True), name="static")
|
39 |
+
|
40 |
@app.get("/")
|
41 |
def index() -> FileResponse:
|
42 |
return FileResponse(path="/app/static/index.html", media_type="text/html")
|