summaryrefslogtreecommitdiffstats
path: root/webapp/app/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/app/views.py')
-rw-r--r--webapp/app/views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/app/views.py b/webapp/app/views.py
index 1c68688..b03f6ab 100644
--- a/webapp/app/views.py
+++ b/webapp/app/views.py
@@ -1,4 +1,4 @@
-from flask import render_template, request
+from flask import render_template, request, send_from_directory
from app import app, sio, send_queue, recv_queue
import time
@@ -10,6 +10,10 @@ def index():
return render_template('index.html',
title='F16 Group1')
+@app.route('/static/<path:path>')
+def send_static(path):
+ return send_from_directory('static', path)
+
connections = set()
@sio.on('connect', namespace='/spawn')