v3. Админка переведена на новую версию.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user