annot-server/webapp/views.py
author ymh <ymh.work@gmail.com>
Thu, 16 Oct 2014 03:22:00 +0200
changeset 26 ebfd0d3cffab
parent 22 986ee928a866
child 28 6025b8470d18
permissions -rw-r--r--
Correction on export_annotation. First working version

#
# 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('/api/test', methods=['PUT', 'POST'])
def new():
    return jsonify(request.get_json(force=False))