diff --git a/app/main.py b/app/main.py index 72bec1c..77b4bd4 100644 --- a/app/main.py +++ b/app/main.py @@ -1,5 +1,4 @@ -from typing import Union -from fastapi import FastAPI +from fastapi import FastAPI, Request from app.constants import logger @@ -12,6 +11,7 @@ def read_root(): @app.post("/integration") -def intgr(body): +async def intgr(request: Request): + body = await request.json() logger.info(body) return {"status": "success"}