flask.Blueprint.add_url_rule

Blueprint.add_url_rule(rule, endpoint=None, view_func=None, **options)[source]

Like Flask.add_url_rule() but for a blueprint. The endpoint for the url_for() function is prefixed with the name of the blueprint.