def public_urls(): urls = {} for url, methods in six.iteritems(api_urls.public_urls()): urls['{0}{1}'.format('/api/v1', url)] = methods urls['{0}{1}'.format('/api', url)] = methods urls["/$"] = ['GET'] urls["/static"] = ['GET'] urls["/keystone"] = ['GET', 'POST'] return urls
def public_urls(): urls = {} for url, methods in api_urls.public_urls().iteritems(): urls['{0}{1}'.format('/api/v1', url)] = methods urls['{0}{1}'.format('/api', url)] = methods urls["/$"] = ['GET'] urls["/static"] = ['GET'] urls["/keystone"] = ['GET', 'POST'] return urls