request method
This commit is contained in:
parent
f6cb984f69
commit
221aa0e120
12
app/main.py
12
app/main.py
|
@ -37,8 +37,16 @@ async def intgr(request: Request):
|
||||||
return {"status": "success"}
|
return {"status": "success"}
|
||||||
|
|
||||||
|
|
||||||
@app.all("/integration_tg")
|
@app.get("/integration_tg")
|
||||||
async def tg_intgr(request: Request):
|
async def tg_intgr_get(request: Request):
|
||||||
|
body = await request.json()
|
||||||
|
logger.info(body)
|
||||||
|
|
||||||
|
return {"status": "success"}
|
||||||
|
|
||||||
|
|
||||||
|
@app.post("/integration_tg")
|
||||||
|
async def tg_intgr_post(request: Request):
|
||||||
body = await request.json()
|
body = await request.json()
|
||||||
logger.info(body)
|
logger.info(body)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue