summaryrefslogtreecommitdiff
path: root/app/blueprints/web.py
blob: f4e294928d3ab790408a38efedea62fc64142e7a (plain)
1
2
3
4
5
6
7
8
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)