GoodRecipe/main.py
Quentin Leblanc 92ba75194e first commit
2025-05-22 15:30:10 +02:00

14 lines
230 B
Python

from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Hello World"}
@app.get("/hello/{name}")
async def say_hello(name: str):
return {"message": f"Hello {name}"}