18 lines
301 B
Python
18 lines
301 B
Python
from fastapi import FastAPI, Request
|
|
|
|
from app.constants import logger
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/")
|
|
def read_root():
|
|
return {"Hello": "World"}
|
|
|
|
|
|
@app.post("/integration")
|
|
async def intgr(request: Request):
|
|
body = await request.json()
|
|
logger.info(body)
|
|
return {"status": "success"}
|