from typing import Union from fastapi import FastAPI from app.constants import logger app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.post("/integration") def intgr(body): logger.info(body) return {"status": "success"}