aboutsummaryrefslogtreecommitdiffstats
path: root/snekweb.py
diff options
context:
space:
mode:
Diffstat (limited to 'snekweb.py')
-rw-r--r--snekweb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/snekweb.py b/snekweb.py
index 3e20fda..ff1a72c 100644
--- a/snekweb.py
+++ b/snekweb.py
@@ -22,12 +22,14 @@ log = app.logger
@app.route('/')
def index():
"""Root path returns standard index.html."""
+
return render_template('index.html')
@sockets.route('/ws/<snekboxid>')
def websocket_route(ws, snekboxid):
"""Opens a websocket that spawns and connects to a snekbox daemon."""
+
localdata = threading.local()
localdata.thread_ws = ws