from flask import Blueprint, current_app static_bp = Blueprint('static_routes', __name__) @static_bp.route('/') def index(): return current_app.send_static_file('index.html') @static_bp.route('/') def serve_static(path): return current_app.send_static_file(path)