aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'bh20simplewebuploader/main.py')
-rw-r--r--bh20simplewebuploader/main.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py
index 2c360e1..b88055f 100644
--- a/bh20simplewebuploader/main.py
+++ b/bh20simplewebuploader/main.py
@@ -630,6 +630,10 @@ def validated_page():
validated_table(output, validated)
return render_template('validated.html', table=Markup(output.getvalue()), menu='STATUS')
+@app.route('/export')
+def export_page():
+ return render_template('export.html',menu='EXPORT')
+
@app.route('/demo')
def demo_page():
return render_template('demo.html',menu='DEMO',load_map=True)
@@ -685,6 +689,11 @@ def getCountDB():
# print(result, file=sys.stderr)
return jsonify({'sequences': int(result[0]["num"]["value"])})
+# Execute a 'global search'
+@app.route('/api/search', methods=['GET'])
+def search():
+ return jsonify(["TESTME"])
+
@app.route('/api/getAllaccessions', methods=['GET'])
def getAllaccessions():
query="""SELECT DISTINCT ?fasta ?value WHERE {?fasta ?x[ <http://edamontology.org/data_2091> ?value ]}"""