Files
hello-world/app.py
Sérgio Rafael Siqueira 2daab1fb5f
All checks were successful
deploy / deploy (push) Successful in 1m1s
update file
2025-04-14 23:00:27 -03:00

14 lines
241 B
Python

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