annot-server/webapp/views.py
changeset 22 986ee928a866
child 28 6025b8470d18
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/annot-server/webapp/views.py	Tue Oct 14 05:07:37 2014 +0200
@@ -0,0 +1,28 @@
+#
+# 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))