annot-server/webapp/views.py
author cavaliet
Thu, 16 Oct 2014 11:04:45 +0200
changeset 28 6025b8470d18
parent 22 986ee928a866
child 42 926f0426ce78
permissions -rw-r--r--
pianoroll in webapp

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

from flask import render_template, jsonify, request

from webapp import app

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


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


@app.route('/api/test', methods=['PUT', 'POST'])
def new():
    return jsonify(request.get_json(force=False))