'The endpoint that matched the request.  This in combination with
:attr:`view_args` can be used to reconstruct the same or a
modified URL.  If an exception happened when matching, this will
be ``None``.'

@property
def endpoint(self):

    if (self.url_rule is not None):
        return self.url_rule.endpoint
