annot-server/webapp.py
author cavaliet
Tue, 14 Oct 2014 16:24:49 +0200
changeset 20 a2525a44ec94
parent 13 435d5c15275a
permissions -rw-r--r--
double piano roll first step


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

import uuid

from flask import Flask, render_template

import config

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

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