Major UI update

This commit is contained in:
Niels Geens
2024-11-06 16:12:50 +01:00
parent 70ed16f8ab
commit 6e78a0f0bd
16 changed files with 594 additions and 358 deletions

View File

@@ -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)