Sha256: 1fdbbab28cfd3c2eef807b647dd62196f36a3b339ddeda5afb91d71d0347c8fe

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

angular.module "mb.resources", ["ngResource", "mb.filters"], ($provide) ->

  $provide.factory "Database", [
    "$resource", (resource) ->

      resource "/api/databases.json", {},
        query: method: "GET", isArray: true
  ]

  $provide.factory "Collection", [
    "$resource", "$filter", (resource, $filter) ->

      resource "/api#{$filter("collectionsPath")()}.json", {},
        query: method: "GET", isArray: true
  ]

  $provide.factory "Document", [
    "$resource", "$filter", (resource, $filter) ->

      resource "/api#{$filter("documentsPath")()}.json", {},
        query: method: "GET", isArray: false
  ]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_browser-0.2.0.rc2 app/assets/javascripts/app/resources.js.coffee