示例#1
0
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
示例#2
0
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