File size: 202 Bytes
0faa2f9
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def root():
    return {"message": "FastAPI running successfully!"}

@app.get("/health")
def health():
    return {"status": "ok"}