From 7465bf9f8f5eddb469274d99ffc2e7347d2193b3 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Mon, 14 Sep 2009 19:03:36 +0000 Subject: removed _all_docs_by_seq in favor of _changes git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814778 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'share/www/script/couch.js') diff --git a/share/www/script/couch.js b/share/www/script/couch.js index 81e25f1b..1c529183 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -207,12 +207,12 @@ function CouchDB(name, httpHeaders) { return this.allDocs({startkey:"_design", endkey:"_design0"}); }; - this.allDocsBySeq = function(options,keys) { + this.changes = function(options,keys) { var req = null; if(!keys) { - req = this.request("GET", this.uri + "_all_docs_by_seq" + encodeOptions(options)); + req = this.request("GET", this.uri + "_changes" + encodeOptions(options)); } else { - req = this.request("POST", this.uri + "_all_docs_by_seq" + encodeOptions(options), { + req = this.request("POST", this.uri + "_changes" + encodeOptions(options), { headers: {"Content-Type": "application/json"}, body: JSON.stringify({keys:keys}) }); -- cgit v1.2.3