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