From 209d4b058850f04ce1ce29ead1509a072078605f Mon Sep 17 00:00:00 2001 From: aarizona Date: Thu, 2 May 2024 11:56:57 +0300 Subject: [PATCH] test --- app/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"}