trRun2 / app.py
JoeMiNot's picture
Update app.py
28fbf23 verified
raw
history blame contribute delete
281 Bytes
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")}