def add_url_rule(self, methods, rule, func):
        if not rule.endswith('/'):
            rule = rule + '/'
        rule_re = re.compile('^%s$' % rule)
        for method in methods:
            self.url_map.setdefault(method, []).append((rule_re, rule, func))
dataset/ETHPy150Open fengsp/batpod/batpod.py/BatPod.add_url_rule/original