From 407998f80e6d85e589172a5ebc081ced5aa66516 Mon Sep 17 00:00:00 2001
From: Pjotr Prins
Date: Sat, 23 May 2020 07:59:10 -0500
Subject: Web: put in menu routing
---
bh20simplewebuploader/main.py | 12 ++++++++++++
bh20simplewebuploader/templates/form.html | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
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 @@
COVID-19
DEMO
BLOG
- ABOUT
+ ABOUT
--
cgit v1.2.3