annot-server/webapp.py
author ymh <ymh.work@gmail.com>
Mon, 13 Oct 2014 12:43:47 +0200
changeset 13 435d5c15275a
parent 8 e72d0e847d5d
permissions -rw-r--r--
clean client npm and gulp config, change flask root url, reference static url in template, change config management to follow flask convention


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