summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarren Smith <garren.smith@gmail.com>2013-10-21 17:10:43 +0200
committerGarren Smith <garren.smith@gmail.com>2013-10-21 17:10:43 +0200
commit12af14b8f54997bdcc89419f61a9880632d0535a (patch)
tree647074b75b5bce2415d976b0537a6c354312ba7c
parente1f5d8dbce37460419f406bf87284dbd7712f82b (diff)
downloadcouchdb-12af14b8f54997bdcc89419f61a9880632d0535a.tar.gz
Fauxton: add web-index url for database model
-rw-r--r--src/fauxton/app/modules/databases/resources.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fauxton/app/modules/databases/resources.js b/src/fauxton/app/modules/databases/resources.js
index 6678d4912..237c4ce87 100644
--- a/src/fauxton/app/modules/databases/resources.js
+++ b/src/fauxton/app/modules/databases/resources.js
@@ -50,6 +50,8 @@ function(app, FauxtonAPI, Documents) {
url: function(context) {
if (context === "index") {
return "/database/" + this.id + "/_all_docs";
+ } else if (context === "web-index") {
+ return "#/database/"+ encodeURIComponent(this.get("name")) + "/_all_docs?limit=100";
} else if (context === "changes") {
return "/database/" + this.id + "/_changes?descending=true&limit=100&include_docs=true";
} else if (context === "app") {