Skip to content
Snippets Groups Projects
main.py 217 B
Newer Older
Tim Repke's avatar
Tim Repke committed
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}"}