@lru_cache()
    def urls(self, version=None):
        """Returns all URLS that are mapped to this interface"""
        urls = []
        for url, methods in self.api.http.routes.items():
            for method, versions in methods.items():
                for interface_version, interface in versions.items():
                    if interface_version == version and interface == self:
                        if not url in urls:
                            urls.append(('/v{0}'.format(version) if version else '') + url)
        return urls
dataset/ETHPy150Open timothycrosley/hug/hug/interface.py/HTTP.urls/original