mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 02:26:46 +00: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>
8 lines
155 B
Python
8 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}
|