初始化

This commit is contained in:
2026-04-13 21:23:41 +08:00
commit 5bf4f81f7d
3 changed files with 189 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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}"}