add controller options to allow multiple routes per controller

This commit is contained in:
Jakob Ketterl
2020-02-23 18:32:37 +01:00
parent 42191f4e77
commit aa9737498a
8 changed files with 24 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ from owrx.connection import WebSocketMessageHandler
class WebSocketController(Controller):
def handle_request(self):
def indexAction(self):
conn = WebSocketConnection(self.handler, WebSocketMessageHandler())
# enter read loop
conn.handle()