Major UI update
This commit is contained in:
@@ -70,7 +70,8 @@ class Main:
|
||||
self._app = web.Application()
|
||||
self._init_routes()
|
||||
|
||||
async def app(self):
|
||||
@property
|
||||
def app(self):
|
||||
return self._app
|
||||
|
||||
def _init_routes(self):
|
||||
@@ -114,6 +115,5 @@ class Main:
|
||||
|
||||
if __name__ == "__main__":
|
||||
main = Main()
|
||||
app = asyncio.run(main.app())
|
||||
print("Web server started at http://localhost:8080")
|
||||
web.run_app(app, port=8080)
|
||||
web.run_app(main.app, port=8080)
|
||||
Reference in New Issue
Block a user