10 lines
205 B
Python
10 lines
205 B
Python
|
from fastapi import FastAPI
|
||
|
from fastapi.responses import ORJSONResponse
|
||
|
|
||
|
app = FastAPI(default_response_class=ORJSONResponse)
|
||
|
|
||
|
|
||
|
@app.get("/items/")
|
||
|
async def read_items():
|
||
|
return [{"item_id": "Foo"}]
|