Create base __init__ for web open api routes
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user