From 5fe88d4ecc157fb2723b1cfc723f13849a56d594 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Fri, 25 Oct 2019 15:28:35 +0200 Subject: [PATCH] Update web.py --- music_assistant/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music_assistant/web.py b/music_assistant/web.py index 512374fc..ae8840cd 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('/index.html', self.index)]) + app.add_routes([web.get('/', 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) -- 2.34.1