📝 Add Cookie docs

This commit is contained in:
Sebastián Ramírez
2018-12-14 20:44:42 +04:00
parent 76f2b67d38
commit 0d9519a771
3 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
from fastapi import Cookie, FastAPI
app = FastAPI()
@app.get("/items/")
async def read_items(*, ads_id: str = Cookie(None)):
return {"ads_id": ads_id}