diff options
author | saksham115 <saksham.agrawal@research.iiit.ac.in> | 2017-07-10 23:56:50 +0530 |
---|---|---|
committer | saksham115 <saksham.agrawal@research.iiit.ac.in> | 2017-07-10 23:56:50 +0530 |
commit | fc09b37e95c19f820ec60db19d98c0dc3d670829 (patch) | |
tree | f0e6815034ea863aeaa1f8d5562722e9b448ca0a /reporting/docker | |
parent | 99dd390e16ec256232def1c09b0ea23a570807d0 (diff) |
Adding /reporting/
Adding /reporting/ to the url
JIRA: STORPERF-162
Change-Id: I4042c490459738820558e7ce686ee5f2269d2bb1
Signed-off-by: saksham115 <saksham.agrawal@research.iiit.ac.in>
Diffstat (limited to 'reporting/docker')
-rw-r--r-- | reporting/docker/src/app.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/reporting/docker/src/app.py b/reporting/docker/src/app.py index 98bb3c6..4f6d17c 100644 --- a/reporting/docker/src/app.py +++ b/reporting/docker/src/app.py @@ -5,14 +5,14 @@ app = Flask(__name__) app.secret_key = 'storperf_graphing_module' #global url -@app.route('/success/') +@app.route('/reporting/success/') def success(): header = {'x-requested-with': 'XMLHttpRequest'} data = urllib.urlopen(session["url"]).read() data = json.loads(data) return render_template('plot_tables.html', data = data) -@app.route('/url',methods = ['POST', 'GET']) +@app.route('/reporting/url',methods = ['POST', 'GET']) def url(): if request.method == 'POST': # global url @@ -20,7 +20,7 @@ def url(): session["url"] = url return redirect(url_for('success')) -@app.route('/') +@app.route('/reporting/') def index(): return render_template('index.html') |