File size: 262 Bytes
962ece6
5f6a730
962ece6
 
 
5f6a730
 
 
962ece6
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles

app = FastAPI()

# Mount the static files directory
app.mount("/", StaticFiles(directory="build", html=True), name="static")

@app.get("/")
def greet_json():
    return {"Hello": "World!"}