mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
chore: 标记app对象为全局对象
This commit is contained in:
parent
f1640760af
commit
5d687e6573
2
main.py
2
main.py
@ -210,6 +210,8 @@ async def handle_local(request):
|
|||||||
}
|
}
|
||||||
|
|
||||||
app = aiohttp.web.Application(middlewares=[handle_before_request])
|
app = aiohttp.web.Application(middlewares=[handle_before_request])
|
||||||
|
utils.setGlobal(app)
|
||||||
|
|
||||||
# mainpage
|
# mainpage
|
||||||
app.router.add_get('/', main)
|
app.router.add_get('/', main)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user