annot-server/webapp.py
changeset 22 986ee928a866
parent 21 89d235bcbbf3
child 23 16a1925df2df
equal deleted inserted replaced
21:89d235bcbbf3 22:986ee928a866
     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 
       
    11 import config
       
    12 
       
    13 app = Flask(__name__)
       
    14 app.secret_key = str(uuid.uuid4())
       
    15 app.config.from_object(config)
       
    16 
       
    17 @app.route('/')
       
    18 def page_home():
       
    19     return render_template('index.html')
       
    20     #return render_template('annotationclient.html', logging=True)
       
    21 
       
    22 
       
    23 @app.route('/annot')
       
    24 def page_annot():
       
    25     return render_template('annot.html')
       
    26 
       
    27 
       
    28 @app.route('/annotationclient')
       
    29 def page_annotationclient():
       
    30     return render_template('annotationclient.html', logging=True)