try cathc
This commit is contained in:
parent
221aa0e120
commit
26f5c8d66e
|
@ -39,15 +39,22 @@ async def intgr(request: Request):
|
|||
|
||||
@app.get("/integration_tg")
|
||||
async def tg_intgr_get(request: Request):
|
||||
try:
|
||||
body = await request.json()
|
||||
logger.info(body)
|
||||
|
||||
return {"status": "success"}
|
||||
|
||||
except:
|
||||
logger.info(request.text)
|
||||
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.text)
|
||||
return {"status": "error"}
|
||||
|
|
Loading…
Reference in New Issue