From 04892822306bf9a01de19cc70bcfc59d7fca9f8f Mon Sep 17 00:00:00 2001 From: Dylan Bolger Date: Tue, 18 Aug 2026 11:44:36 -0500 Subject: move from fastapi to flask, various cleanups involved --- app/blueprints/__init__.py | 0 app/blueprints/web.py | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 app/blueprints/__init__.py create mode 100644 app/blueprints/web.py (limited to 'app/blueprints') diff --git a/app/blueprints/__init__.py b/app/blueprints/__init__.py new file mode 100644 index 0000000..e69de29 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 -- cgit v1.2.3