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': {}}
@app.route("/")
def welcome():
app.logger.debug('welcome')
return "Welcome to DREAM Simulation"
app.logger.debug('welcome')
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 () {
......@@ -377,4 +377,4 @@
value: DreamNamespace
});
}(window, jQuery, jsPlumb, console, _));
\ No newline at end of file
}(window, jQuery, jsPlumb, console, _));
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