aboutsummaryrefslogtreecommitdiffstats
path: root/snekweb.py
diff options
context:
space:
mode:
authorGravatar Christopher Goes <[email protected]>2019-03-19 18:48:33 -0600
committerGravatar Christopher Goes <[email protected]>2019-03-19 18:48:33 -0600
commit42f9140c413aba70b62c085f1d1f6b5356a684a0 (patch)
tree0221f692f7db4da6b66c8f96682e5eff01c77c71 /snekweb.py
parentAdd flake8-docstrings to Pipenv (diff)
Add docstrings
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 92e0436..2ed1034 100644
--- a/snekweb.py
+++ b/snekweb.py
@@ -24,11 +24,13 @@ 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