mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-05 12:38:54 -05:00
* Fix for - [FEATURE] Remove *, where it's not needed #1234 * 🔥 Remove unnecessary arg *, * 🎨 Update docs format highlight lines Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
9 lines
155 B
Python
9 lines
155 B
Python
from fastapi import Cookie, FastAPI
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/items/")
|
|
async def read_items(ads_id: str = Cookie(None)):
|
|
return {"ads_id": ads_id}
|