From e2b22d131bedc8abf1f7868cc54ddca0134f6b3c Mon Sep 17 00:00:00 2001 From: hteppl Date: Thu, 8 May 2025 15:50:53 +0300 Subject: [PATCH] Create base __init__ for web open api routes --- web/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 web/__init__.py diff --git a/web/__init__.py b/web/__init__.py new file mode 100644 index 00000000..f826dc1b --- /dev/null +++ b/web/__init__.py @@ -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