diff options
| author | Dylan Bolger <dylan.bolger00@gmail.com> | 2026-08-18 11:44:36 -0500 |
|---|---|---|
| committer | Dylan Bolger <dylan.bolger00@gmail.com> | 2026-08-18 11:44:36 -0500 |
| commit | 04892822306bf9a01de19cc70bcfc59d7fca9f8f (patch) | |
| tree | fcc8bc92c5a15b669a657561dfe2ac7e14c72857 /app/blueprints/web.py | |
| parent | eead346519758f45dd587cfd471f90f6a6a8037f (diff) | |
| download | photoblog-04892822306bf9a01de19cc70bcfc59d7fca9f8f.tar.xz photoblog-04892822306bf9a01de19cc70bcfc59d7fca9f8f.zip | |
move from fastapi to flask, various cleanups involved
Diffstat (limited to 'app/blueprints/web.py')
| -rw-r--r-- | app/blueprints/web.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
