annot-server/webapp.py
author cavaliet
Thu, 09 Oct 2014 15:59:48 +0200
changeset 8 e72d0e847d5d
parent 0 e1d4d7a8255a
child 13 435d5c15275a
permissions -rw-r--r--
routes


#
# 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)