mirror of
https://github.com/fastapi/fastapi.git
synced 2026-11-22 02:00:34 +08:00
9 lines
122 B
Python
9 lines
122 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/items/")
|
|
def read_items():
|
|
return ["plumbus", "portal gun"]
|