From: marcelveldt Date: Fri, 25 Oct 2019 13:24:10 +0000 (+0200) Subject: Update web.py X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=93448661d9f4ff904fd24ecfcf5423103ab6a35f;p=music-assistant-server.git Update web.py testing --- diff --git a/music_assistant/web.py b/music_assistant/web.py index ae8840cd..512374fc 100755 --- a/music_assistant/web.py +++ b/music_assistant/web.py @@ -85,9 +85,9 @@ class Web(): app.add_routes([web.get('/api/{media_type}', self.get_items)]) app.add_routes([web.get('/api/{media_type}/{media_id}/{action}', self.get_item)]) app.add_routes([web.get('/api/{media_type}/{media_id}', self.get_item)]) - app.add_routes([web.get('/', self.index)]) + app.add_routes([web.get('/index.html', self.index)]) webdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'web/') - app.router.add_static("/", webdir) + #app.router.add_static("/", webdir) self.runner = web.AppRunner(app, access_log=None) await self.runner.setup() http_site = web.TCPSite(self.runner, '0.0.0.0', self.http_port)