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)