forked from smu-software-analytics/software-traceability
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.py
More file actions
32 lines (22 loc) · 785 Bytes
/
Copy pathapp.py
File metadata and controls
32 lines (22 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from whitenoise import WhiteNoise
from datasets import CM1, CM1_Sub, GanttProject, MODIS, Pine, WorldVistA
app = Flask(__name__)
Bootstrap(app)
app.wsgi_app = WhiteNoise(app.wsgi_app, root="datasets", prefix="datasets")
app.config["BOOTSTRAP_SERVE_LOCAL"] = True
@app.route("/", methods=["get"])
def index():
return render_template("index.html")
@app.route("/browse", methods=["get"])
def browse():
return render_template(
"browse.html",
datasets=[CM1(), CM1_Sub(), GanttProject(), MODIS(), Pine(), WorldVistA()],
)
@app.route("/baseline", methods=["get"])
def baseline():
return render_template("baseline.html")
if __name__ == "__main__":
app.run(debug=True)