equal
deleted
inserted
replaced
|
1 # |
|
2 # See LICENCE for detail |
|
3 # Copyright (c) 2014 IRI |
|
4 # |
|
5 |
|
6 from flask import render_template, jsonify, request |
|
7 |
|
8 from webapp import app |
|
9 |
|
10 @app.route('/') |
|
11 def page_home(): |
|
12 return render_template('index.html') |
|
13 #return render_template('annotationclient.html', logging=True) |
|
14 |
|
15 |
|
16 @app.route('/annot') |
|
17 def page_annot(): |
|
18 return render_template('annot.html') |
|
19 |
|
20 |
|
21 @app.route('/annotationclient') |
|
22 def page_annotationclient(): |
|
23 return render_template('annotationclient.html', logging=True) |
|
24 |
|
25 |
|
26 @app.route('/api/test', methods=['PUT', 'POST']) |
|
27 def new(): |
|
28 return jsonify(request.get_json(force=False)) |