3 changed files with 3 additions and 15 deletions
@ -1,11 +0,0 @@ |
|||||
from typing import Union |
|
||||
|
|
||||
from fastapi import Cookie, FastAPI |
|
||||
from typing_extensions import Annotated |
|
||||
|
|
||||
app = FastAPI() |
|
||||
|
|
||||
|
|
||||
@app.get("/items/") |
|
||||
async def read_items(ads_id: Annotated[Union[str, None], Cookie()] = None): |
|
||||
return {"ads_id": ads_id} |
|
||||
Loading…
Reference in new issue