aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bh20simplewebuploader/main.py12
-rw-r--r--bh20simplewebuploader/templates/form.html2
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>