from flask import (Blueprint, render_template) bp = Blueprint('share', __name__, url_prefix='/share') @bp.route('///') def share(tree=None, branch=None): return render_template('share.html', tree=tree, branch=branch)