This commit is contained in:
aarizona 2024-05-02 11:56:57 +03:00
parent 7680dd143e
commit 209d4b0588
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,4 @@
from typing import Union from fastapi import FastAPI, Request
from fastapi import FastAPI
from app.constants import logger from app.constants import logger
@ -12,6 +11,7 @@ def read_root():
@app.post("/integration") @app.post("/integration")
def intgr(body): async def intgr(request: Request):
body = await request.json()
logger.info(body) logger.info(body)
return {"status": "success"} return {"status": "success"}