We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 098788c commit 49f02aaCopy full SHA for 49f02aa
service.tac
@@ -3,6 +3,7 @@
3
4
from twisted.application import service, internet
5
from twisted.web.server import Site
6
+from twisted.web.static import File
7
from twisted.web.resource import Resource
8
from autobahn.twisted.websocket import WebSocketServerFactory
9
@@ -22,6 +23,7 @@ root.putChild(b"play", api.PlayResource())
22
23
root.putChild(b"stop", api.StopResource())
24
root.putChild(b"volume", api.VolumeResource())
25
root.putChild(b"streamurls", api.StreamUrlListResource())
26
+root.putChild(b"index", File('index.html'))
27
site = Site(root)
28
29
internet.TCPServer(3000, site).setServiceParent(rpi_service)
0 commit comments