

def add_url_rule(self, host, rule_string, endpoint, **options):
    'Add a url rule to the app instance.\n\n        The url rule is the same with Flask apps and other Werkzeug apps.\n\n        :param host: the matched hostname. e.g. "www.python.org"\n        :param rule_string: the matched path pattern. e.g. "/news/<int:id>"\n        :param endpoint: the endpoint name as a dispatching key such as the\n                         qualified name of the object.\n        '
    rule = Rule(rule_string, host=host, endpoint=endpoint, **options)
    self.url_map.add(rule)

dataset/ETHPy150Open douban/brownant/brownant/app.py Brownant.add_url_rule/original