def couchdb_proxy_file(url): user_token = session.get('authproxy_token') if user_token is None: abort(401) url += '/file' return couchdbproxy.on_proxy(request, user_token=user_token, url=url)
def couchdb_proxy(url, user_token): return couchdbproxy.on_proxy(request, user_token=user_token, url=url)