'Like :meth:`Flask.route` but for a blueprint.  The endpoint for the
:func:`url_for` function is prefixed with the name of the blueprint.'

def route(self, rule, **options):

    def decorator(f):
        endpoint = options.pop('endpoint', f.__name__)
        self.add_url_rule(rule, endpoint, f, **options)
        return f
    return decorator
