Skip to content

Commit

Permalink
Compatibility with newer aiohttp
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 24, 2024
1 parent 1f6e139 commit d517a06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
import aiohttp_cors


loop = asyncio.get_event_loop()
app = aiohttp.web.Application(loop = loop)
app = aiohttp.web.Application()
cors = aiohttp_cors.setup(app)
app.router.add_static('/static', './static')
app.router.add_get('/favicon.ico',
Expand Down

0 comments on commit d517a06

Please sign in to comment.