mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-26 03:39:25 -04:00
9 lines
140 B
Python
9 lines
140 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/items/", deprecated=True)
|
|
async def read_items():
|
|
return [{"item_id": "Foo"}]
|