bp = Blueprint(__name__, __name__, url_prefix=("/profile", "/personal/profile"), static_folder="static")
@bp.route("/main", methods=["GET"])
def page():
pass
multi url as in - using a regex?
it's also possible to just assign multiple instances of the blueprint with different url_prefixes. (i've had to do this to assign the same blueprint to run with a url prefix, and with no prefix on a subdomain)
bp1 = Blueprint(__name__, __name__, url_prefix="/profile1", static_folder="static")
bp2 = Blueprint(__name__, __name__, subdomain="<subdomain>", url_prefix="/", static_folder="static")
using a regex:
bp1 = Blueprint(__name__, __name__, url_prefix="/profile<:profile_id>", static_folder="static")
@bp.route("/main", methods=["GET"])
def page(profile_id):
BTW - use stackoverflow for this kinda stuff
This is not StackOverflow...
:+1: