diff options
author | 2019-03-19 18:48:33 -0600 | |
---|---|---|
committer | 2019-03-19 18:48:33 -0600 | |
commit | 42f9140c413aba70b62c085f1d1f6b5356a684a0 (patch) | |
tree | 0221f692f7db4da6b66c8f96682e5eff01c77c71 /snekweb.py | |
parent | Add flake8-docstrings to Pipenv (diff) |
Add docstrings
Diffstat (limited to 'snekweb.py')
-rw-r--r-- | snekweb.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |