Update static/script.js
Browse files- static/script.js +5 -0
static/script.js
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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")
|