Commit 4ce15bc2 authored by Jérome Perrin's avatar Jérome Perrin Committed by Sebastien Robin

move static files in a place where flask can serve them

parent 8b792e33
from flask import Flask, jsonify
from flask import Flask, jsonify, redirect, url_for
from flask import request
from crossdomain import crossdomain
from util import deunicodeData
app = Flask(__name__)
global data
data = {'model': None,
'simulation_parameters': {}}
......@@ -10,7 +11,8 @@ data = {'model': None,
@app.route("/")
def welcome():
app.logger.debug('welcome')
return "Welcome to DREAM Simulation"
return redirect(url_for('static', filename='index.html'))
@app.route("/addModel")
def addModel():
......
......@@ -8,7 +8,7 @@
};
priv.getUrl = function() {
return $(document)[0].baseURI + "/dream_platform/"
return "/";
};
priv.initJsPlumb = function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment