Update web.py
authormarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Fri, 25 Oct 2019 13:24:10 +0000 (15:24 +0200)
committermarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Fri, 25 Oct 2019 13:24:10 +0000 (15:24 +0200)
testing

music_assistant/web.py

index ae8840cd561129e654f791cd58ddc9c7440e5b75..512374fc11458d13d913609f4dfba65442e045df 100755 (executable)
@@ -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)