Skip to content

Commit

Permalink
chore: 标记app对象为全局对象
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq authored Apr 21, 2024
1 parent f164076 commit 5d687e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ async def handle_local(request):
}

app = aiohttp.web.Application(middlewares=[handle_before_request])
utils.setGlobal(app)

# mainpage
app.router.add_get('/', main)

Expand Down

0 comments on commit 5d687e6

Please sign in to comment.