Skip to content

Commit e828321

Browse files
committed
refactor: combine routes into one add
1 parent be9fd50 commit e828321

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

exts/vote_handling.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@ async def fill_topgg_info(self):
3131
self.bot_vote_channel = await self.bot.fetch_channel(1122755262466498590) # type: ignore
3232

3333
app = web.Application()
34-
app.add_routes([web.post("/topgg", self.topgg_handling)])
35-
app.add_routes([web.post("/dbl_rpl", self.dbl_handling_rpl)])
36-
app.add_routes([web.post("/dbl_ui", self.dbl_handling_ui)])
34+
app.add_routes(
35+
[
36+
web.post("/topgg", self.topgg_handling),
37+
web.post("/dbl_rpl", self.dbl_handling_rpl),
38+
web.post("/dbl_ui", self.dbl_handling_ui),
39+
]
40+
)
3741
self.runner = web.AppRunner(app)
3842
await self.runner.setup()
3943
site = web.TCPSite(self.runner, "127.0.0.1", 8000)

0 commit comments

Comments
 (0)