aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'bh20simplewebuploader/main.py')
-rw-r--r--bh20simplewebuploader/main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py
index d524efe..b40db6f 100644
--- a/bh20simplewebuploader/main.py
+++ b/bh20simplewebuploader/main.py
@@ -937,6 +937,7 @@ def getSEQbyLocationAndSpecimenSource():
result = r.json()['results']['bindings']
return str(result)
-@app.route('/api/ebi-sample.xml', methods=['GET'])
-def ebi_sample():
- return render_template('ebi-sample.xml')
+@app.route('/api/ebi/sample-<id>.xml', methods=['GET'])
+def ebi_sample(id):
+ page = render_template('ebi-sample.xml',**locals())
+ return page