v3. Админка переведена на новую версию.

This commit is contained in:
Vladless
2024-11-08 06:02:07 +03:00
parent 9a67bf3976
commit 33e33b4be9
3 changed files with 88 additions and 40 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ from aiohttp import web
from backup import backup_database
from bot import bot, dp, router
from config import WEBAPP_HOST, WEBAPP_PORT, WEBHOOK_PATH, WEBHOOK_URL
from config import WEBAPP_HOST, WEBAPP_PORT, WEBHOOK_PATH, WEBHOOK_URL, SUB_PATH
from database import init_db
from handlers.keys.subscriptions import handle_subscription
from handlers.notifications import notify_expiring_keys
@@ -55,7 +55,7 @@ async def main():
app.on_shutdown.append(on_shutdown)
app.router.add_post('/yookassa/webhook', payment_webhook)
app.router.add_post('/freekassa/webhook', freekassa_webhook)
app.router.add_get('/solonet/sub/{email}', handle_subscription)
app.router.add_get(f'{SUB_PATH}{{email}}', handle_subscription)
SimpleRequestHandler(dispatcher=dp, bot=bot).register(app, path=WEBHOOK_PATH)
setup_application(app, dp, bot=bot)