File size: 281 Bytes
eefea13 28fbf23 eefea13 81d1bf6 bd539cb 81d1bf6 | 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 root():
return {"App": "Started"}
@app.post("/greet")
def greet(data:dict):
return {"key":data.get("key","#NOT FOUND")}
@app.post("/greet2")
def greet2(data):
return {"key":data.get("key","#NOT FOUND")}
|