-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
65 lines (55 loc) · 1.2 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
"""
flask routes for the web app
"""
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
"""
Index/Home page
"""
return render_template('index.html')
@app.route('/accounts')
def accounts():
"""
Accounts page
"""
return render_template('accounts.html')
@app.route('/accounts/witnesses')
def accounts_witnesses():
"""
Witnesses page
"""
return render_template('witnesses.html')
@app.route('/accounts/sons')
def accounts_sons():
"""
Sons page
"""
return render_template('sons.html')
@app.route('/accounts/<string:account_name>', methods=['GET'])
def account_details(account_name): # pylint: disable=unused-argument
"""
Account details page
"""
return render_template('account_details.html')
@app.route('/assets')
def assets():
"""
Assets page
"""
return render_template('assets.html')
@app.route('/blocks')
def blocks():
"""
Blocks page
"""
return render_template('blocks.html')
@app.route('/blocks/transactions')
def transactions():
"""
Transactions page
"""
return render_template('transactions.html')
if __name__ == '__main__':
app.run(port=8080)