Spaces:
Sleeping
Sleeping
File size: 286 Bytes
e1baddd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World!"}
@app.get("/2")
def read_root2():
return {"Hello": "World2!"}
# index html in static folder
# @app.get("/")
# def read_root():
# return FileResponse("static/index.html") |