Spaces:
Sleeping
Sleeping
updated main.py
Browse files
main.py
CHANGED
|
@@ -18,3 +18,8 @@ app.mount("/", StaticFiles(directory="static", html=True), name="static")
|
|
| 18 |
@app.get("/")
|
| 19 |
def index() -> FileResponse:
|
| 20 |
return FileResponse(path="/app/static/index.html", media_type="text/html")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
@app.get("/")
|
| 19 |
def index() -> FileResponse:
|
| 20 |
return FileResponse(path="/app/static/index.html", media_type="text/html")
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
@app.get("/home")
|
| 24 |
+
def home():
|
| 25 |
+
return {"Hello": "World"}
|