diff options
author | Pjotr Prins | 2020-05-23 07:59:10 -0500 |
---|---|---|
committer | Pjotr Prins | 2020-05-23 07:59:10 -0500 |
commit | 407998f80e6d85e589172a5ebc081ced5aa66516 (patch) | |
tree | 95333b87239502748b48b0152bb3aef80e7e3c0d | |
parent | 230ac5c161790b2f02cf64fbf11a13e50078cf23 (diff) | |
download | bh20-seq-resource-407998f80e6d85e589172a5ebc081ced5aa66516.tar.gz bh20-seq-resource-407998f80e6d85e589172a5ebc081ced5aa66516.tar.lz bh20-seq-resource-407998f80e6d85e589172a5ebc081ced5aa66516.zip |
Web: put in menu routing
-rw-r--r-- | bh20simplewebuploader/main.py | 12 | ||||
-rw-r--r-- | bh20simplewebuploader/templates/form.html | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index 0ba43fd..c03cc81 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -418,6 +418,18 @@ def receive_files(): shutil.rmtree(dest_dir) +@app.route('/demo') +def demo_page(): + return render_template('demo.html') + +@app.route('/blog') +def blog_page(): + return render_template('blog.html') + +@app.route('/about') +def about_page(): + return render_template('about.html') + ## Dynamic API functions starting here ## This is quick and dirty for now, just to get something out and demonstrate the queries ## Feel free to rename the functions/endpoints, feel free to process result so we get nicer JSON diff --git a/bh20simplewebuploader/templates/form.html b/bh20simplewebuploader/templates/form.html index 2ed523d..819d9c3 100644 --- a/bh20simplewebuploader/templates/form.html +++ b/bh20simplewebuploader/templates/form.html @@ -22,7 +22,7 @@ <a href="/" class="active">COVID-19</a> <a href="/demo">DEMO</a> <a href="/blog">BLOG</a> - <a href="#about">ABOUT</a> + <a href="/about">ABOUT</a> <a href="javascript:void(0);" class="icon" onclick="myFunction()"> <i class="fa fa-bars"></i> </a> |