Move tribute webhook route to service

This commit is contained in:
Machka Pasla
2025-06-24 19:12:17 +03:00
parent 891f9354ac
commit 7a90e24427
4 changed files with 10 additions and 12 deletions
View File
-9
View File
@@ -1,9 +0,0 @@
from aiohttp import web
from bot.services.tribute_service import TributeService
async def tribute_webhook_route(request: web.Request):
tribute_service: TributeService = request.app['tribute_service']
raw_body = await request.read()
signature_header = request.headers.get('trbt-signature')
return await tribute_service.handle_webhook(raw_body, signature_header)