From fff80422420ee929abe8078cd0a7717c713c70d5 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Tue, 16 Aug 2022 23:38:59 +0300 Subject: [PATCH] webhook url with token --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 3cf6727..aec98de 100644 --- a/app/main.py +++ b/app/main.py @@ -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