url: function()

in app/addons/databases/resources.js [51:70]


  url: function (context) {
    if (context === "index") {
      return "/database/" + this.safeID() + "/_all_docs";
    } else if (context === "web-index") {
      return "#/database/" + this.safeID() + "/_all_docs?limit=" + Databases.DocLimit;
    } else if (context === "apiurl") {
      return Helpers.getApiUrl("/database/" + this.safeID() + "/_all_docs");
    } else if (context === "changes") {
      return FauxtonAPI.urls('changes', 'app', this.safeID(), '', '?descending=true&limit=100&include_docs=true');
    } else if (context === "changes-apiurl") {
      return FauxtonAPI.urls('changes', 'apiurl', this.safeID(), '?descending=true&limit=100&include_docs=true');
    } else if (context === "app") {
      return "/database/" + this.safeID();
    }
    if (this.partitioned) {
      return Helpers.getServerUrl("/" + this.safeID()) + '?partitioned=true';
    }
    return Helpers.getServerUrl("/" + this.safeID());

  },