Skip to content
Snippets Groups Projects
Routes.py 247 B
Newer Older
  • Learn to ignore specific revisions
  • Robert Goldmann's avatar
    Robert Goldmann committed
    from flask import Blueprint, render_template
    
    
    def construct_blueprint(settings):
        routes = Blueprint('routes', __name__)
    
        @routes.route('/', methods=['GET'])
        def index():
            return render_template('index.html')
    
        return routes