remove get
This commit is contained in:
parent
87c1083270
commit
56775123c3
17
app/main.py
17
app/main.py
|
@ -37,24 +37,13 @@ async def intgr(request: Request):
|
|||
return {"status": "success"}
|
||||
|
||||
|
||||
@app.get("/integration_tg")
|
||||
@app.post("/integration_tg")
|
||||
async def tg_intgr_get(request: Request):
|
||||
try:
|
||||
body = await request.json()
|
||||
body = await request.body()
|
||||
logger.info(body)
|
||||
|
||||
return {"status": "success"}
|
||||
except:
|
||||
logger.info(request.__dict__)
|
||||
return {"status": "error"}
|
||||
|
||||
@app.post("/integration_tg")
|
||||
async def tg_intgr_post(request: Request):
|
||||
try:
|
||||
body = await request.json()
|
||||
logger.info(body)
|
||||
|
||||
return {"status": "success"}
|
||||
except:
|
||||
logger.info(request.__dict__)
|
||||
return {"status": "error"}
|
||||
return {"status": "error"}
|
Loading…
Reference in New Issue