annot-server/webapp.py
author cavaliet
Fri, 10 Oct 2014 14:59:09 +0200
changeset 10 90918426079c
parent 8 e72d0e847d5d
child 13 435d5c15275a
permissions -rw-r--r--
better feedback after annotation sent


#
# See LICENCE for detail
# Copyright (c) 2014 IRI
#

import uuid

from flask import Flask, render_template

app = Flask(__name__)
app.secret_key = str(uuid.uuid4())

@app.route('/')
def page_home():
    return render_template('index.html')
    #return render_template('annotationclient.html', logging=True)


@app.route('/annot')
def page_annot():
    return render_template('annot.html')


@app.route('/annotationclient')
def page_annotationclient():
    return render_template('annotationclient.html', logging=True)