summaryrefslogtreecommitdiff
path: root/app/blueprints
diff options
context:
space:
mode:
authorDylan Bolger <dylan.bolger00@gmail.com>2026-08-18 11:44:36 -0500
committerDylan Bolger <dylan.bolger00@gmail.com>2026-08-18 11:44:36 -0500
commit04892822306bf9a01de19cc70bcfc59d7fca9f8f (patch)
treefcc8bc92c5a15b669a657561dfe2ac7e14c72857 /app/blueprints
parenteead346519758f45dd587cfd471f90f6a6a8037f (diff)
downloadphotoblog-04892822306bf9a01de19cc70bcfc59d7fca9f8f.tar.xz
photoblog-04892822306bf9a01de19cc70bcfc59d7fca9f8f.zip
move from fastapi to flask, various cleanups involved
Diffstat (limited to 'app/blueprints')
-rw-r--r--app/blueprints/__init__.py0
-rw-r--r--app/blueprints/web.py9
2 files changed, 9 insertions, 0 deletions
diff --git a/app/blueprints/__init__.py b/app/blueprints/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/blueprints/__init__.py
diff --git a/app/blueprints/web.py b/app/blueprints/web.py
new file mode 100644
index 0000000..f4e2949
--- /dev/null
+++ b/app/blueprints/web.py
@@ -0,0 +1,9 @@
+from flask import Blueprint, render_template, current_app
+from ..services import images
+
+web_controller = Blueprint('web', __name__, template_folder='templates')
+
+@web_controller.route('/')
+def main_page():
+ imgs = images.get_all_images(current_app)
+ return render_template('index.html', images=imgs) \ No newline at end of file