Create base __init__ for web open api routes

This commit is contained in:
hteppl
2025-05-08 15:50:53 +03:00
parent cd3c19b79d
commit 55461aa50b
+11
View File
@@ -0,0 +1,11 @@
from aiohttp import web
from aiohttp.web_urldispatcher import UrlDispatcher
import bot
async def register_web_routes(router: UrlDispatcher) -> None:
app = web.Application()
dp = bot.dp
# todo: add your api routes here