webhook url with token

This commit is contained in:
Dmitry Afanasyev 2022-08-16 23:38:59 +03:00
parent 2489157728
commit fff8042242

View File

@ -84,7 +84,7 @@ async def webhook(request: web.Request) -> web.Response:
async def create_app() -> web.Application:
application = web.Application()
application.router.add_post(f'/{WEBHOOK_PATH}/{API_TOKEN}', webhook)
application.router.add_post(f'{WEBHOOK_PATH}/{API_TOKEN}', webhook)
application.on_startup.append(on_startup_gunicorn)
application.on_shutdown.append(on_shutdown_gunicorn)
return application