From 42f9140c413aba70b62c085f1d1f6b5356a684a0 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Tue, 19 Mar 2019 18:48:33 -0600 Subject: Add docstrings --- snekweb.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'snekweb.py') 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/') def websocket_route(ws, snekboxid): + """Opens a websocket that spawns and connects to a snekbox daemon.""" localdata = threading.local() localdata.thread_ws = ws -- cgit v1.2.3