Skip to content

Commit 441cc1b

Browse files
authored
Update search_router.py
1 parent 8f8b358 commit 441cc1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/search_router.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# app/search_router.py
2-
from fastapi import APIRouter, Body, Header
2+
from fastapi import APIRouter, Header
33
from app.models import Payload
44

55
router = APIRouter()
66

77
@router.post("/ingest")
88
async def ingest(
9-
payload: Payload = Body(...),
9+
payload: Payload,
1010
authorization: str = Header(None),
1111
):
12-
# Your processing logic here
12+
# You can add validation here if needed
1313
return {"message": "Payload ingested successfully"}

0 commit comments

Comments
 (0)