We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f8b358 commit 441cc1bCopy full SHA for 441cc1b
app/search_router.py
@@ -1,13 +1,13 @@
1
# app/search_router.py
2
-from fastapi import APIRouter, Body, Header
+from fastapi import APIRouter, Header
3
from app.models import Payload
4
5
router = APIRouter()
6
7
@router.post("/ingest")
8
async def ingest(
9
- payload: Payload = Body(...),
+ payload: Payload,
10
authorization: str = Header(None),
11
):
12
- # Your processing logic here
+ # You can add validation here if needed
13
return {"message": "Payload ingested successfully"}
0 commit comments