author | ymh <ymh.work@gmail.com> |
Mon, 13 Oct 2014 12:43:47 +0200 | |
changeset 13 | 435d5c15275a |
parent 8 | e72d0e847d5d |
permissions | -rw-r--r-- |
0 | 1 |
|
2 |
# |
|
3 |
# See LICENCE for detail |
|
4 |
# Copyright (c) 2014 IRI |
|
5 |
# |
|
6 |
||
7 |
import uuid |
|
8 |
||
9 |
from flask import Flask, render_template |
|
10 |
||
13
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
8
diff
changeset
|
11 |
import config |
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
8
diff
changeset
|
12 |
|
0 | 13 |
app = Flask(__name__) |
14 |
app.secret_key = str(uuid.uuid4()) |
|
13
435d5c15275a
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention
ymh <ymh.work@gmail.com>
parents:
8
diff
changeset
|
15 |
app.config.from_object(config) |
0 | 16 |
|
17 |
@app.route('/') |
|
18 |
def page_home(): |
|
8 | 19 |
return render_template('index.html') |
20 |
#return render_template('annotationclient.html', logging=True) |
|
0 | 21 |
|
22 |
||
23 |
@app.route('/annot') |
|
24 |
def page_annot(): |
|
8 | 25 |
return render_template('annot.html') |
26 |
||
27 |
||
28 |
@app.route('/annotationclient') |
|
29 |
def page_annotationclient(): |
|
30 |
return render_template('annotationclient.html', logging=True) |