-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
76 lines (47 loc) · 1.66 KB
/
app.py
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
from flask import Flask
from flask import render_template
app = Flask(__name__, template_folder="./templates")
@app.route('/', methods=['GET'])
def index():
info = {}
return render_template('index.html', **info)
@app.route('/index', methods=['GET'])
def index_page():
info = {}
return render_template('index.html', **info)
@app.route('/generic', methods=['GET'])
def generic_page():
return render_template('generic.html')
@app.route('/elements', methods=['GET'])
def elements_page():
return render_template('elements.html')
@app.route('/about_project', methods=['GET'])
def project_page():
return render_template('project.html')
@app.route('/contact', methods=['GET'])
def contact_page():
return render_template('contact.html')
@app.route('/data_protection_ethics', methods=['GET'])
def ethics_page():
return render_template('data_protection_ethics.html')
@app.route('/researchers', methods=['GET'])
def researchers_page():
return render_template('researchers.html')
@app.route('/information', methods=['GET'])
def information_page():
return render_template('information.html')
@app.route('/summary', methods=['GET'])
def summary_page():
return render_template('summary.html')
@app.route('/rights', methods=['GET'])
def rights_page():
return render_template('participants_rights.html')
@app.route('/documents', methods=['GET'])
def documents_page():
return render_template('documents.html')
@app.route('/save_forms', methods=['POST'])
def contact_forms_page():
return 'done!'
if __name__ == '__main__':
# app.run(debug=True, host='0.0.0.0', port=9090)
app.run(debug=False, host='0.0.0.0', port=5000)