Files
hello-world/app.py
Sérgio Rafael Siqueira b2060b315d
Some checks failed
deploy / deploy (push) Failing after 48s
update message
2025-04-14 23:21:09 -03:00

14 lines
230 B
Python

from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "world"}
@app.get("/items/{item_id}")
def read_item(item_id: int, q: str | None = None):
return {"item_id": item_id, "q": q}