summaryrefslogtreecommitdiffstats
path: root/docker/storperf-reporting/src/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'docker/storperf-reporting/src/app.py')
-rw-r--r--docker/storperf-reporting/src/app.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/storperf-reporting/src/app.py b/docker/storperf-reporting/src/app.py
index 25edf48..fadda66 100644
--- a/docker/storperf-reporting/src/app.py
+++ b/docker/storperf-reporting/src/app.py
@@ -8,6 +8,7 @@
##############################################################################
from flask import Flask, redirect, url_for, request, render_template, session
+from flask import send_from_directory
import urllib
import json
app = Flask(__name__)
@@ -29,6 +30,16 @@ def url():
return redirect(url_for('success'))
+@app.route('/reporting/js/<path:path>')
+def js(path):
+ return send_from_directory('static/js/', path)
+
+
+@app.route('/reporting/css/<path:path>')
+def css(path):
+ return send_from_directory('static/css/', path)
+
+
@app.route('/reporting/')
def index():
return render_template('index.html')