Skip to content

Commit 49f02aa

Browse files
committed
serve shitty js client to prevent cors problems
1 parent 098788c commit 49f02aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service.tac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from twisted.application import service, internet
55
from twisted.web.server import Site
6+
from twisted.web.static import File
67
from twisted.web.resource import Resource
78
from autobahn.twisted.websocket import WebSocketServerFactory
89

@@ -22,6 +23,7 @@ root.putChild(b"play", api.PlayResource())
2223
root.putChild(b"stop", api.StopResource())
2324
root.putChild(b"volume", api.VolumeResource())
2425
root.putChild(b"streamurls", api.StreamUrlListResource())
26+
root.putChild(b"index", File('index.html'))
2527
site = Site(root)
2628

2729
internet.TCPServer(3000, site).setServiceParent(rpi_service)

0 commit comments

Comments
 (0)