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