Arkany commited on
Commit
4693f37
·
1 Parent(s): 6e121f1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -5
main.py CHANGED
@@ -1,7 +1,5 @@
1
- from fastapi import FastAPI
2
-
3
- app = FastAPI()
4
 
5
  @app.get("/")
6
- def read_root():
7
- return {"Hello": "World!"}
 
1
+ app.mount("/", StaticFiles(directory="static", html=True), name="static")
 
 
2
 
3
  @app.get("/")
4
+ def index() -> FileResponse:
5
+ return FileResponse(path="/app/static/index.html", media_type="text/html")