Beispiel #1
0
def main():
    handlers = [
        (r"/websocket", WebSocket),    
        (r"/?([^/]*)", Controller),
    ]
    tornado_server.start(handlers)      
Beispiel #2
0
def main():
    handlers = [(r"/?([^/]*)", Home)]
    tornado_server.start(handlers)