annot-server/webapp/views.py
author cavaliet
Fri, 17 Oct 2014 17:45:38 +0200
changeset 39 c922bf9167aa
parent 28 6025b8470d18
child 42 926f0426ce78
permissions -rw-r--r--
create_url_polemics_param now with content and project id to generate full url

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