Subversion Repositories SmartDukaan

Rev

Rev 13542 | Rev 13555 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13542 Rev 13551
Line 7... Line 7...
7
          method: "JSONP",
7
          method: "JSONP",
8
         }
8
         }
9
      }
9
      }
10
  )}) 
10
  )}) 
11
.factory('Products', function($resource,apihost) {
11
.factory('Products', function($resource,apihost) {
12
  return $resource(apihost+"/store_products/?user_id=:me",
12
  return $resource(apihost+"store_products/index/:me/page:"+":page",
13
      {callback: "JSON_CALLBACK"} , 
13
      {callback: "JSON_CALLBACK"} , 
14
      { all: {
14
      { all: {
15
          method: "JSONP",
15
          method: "JSONP",
16
         }
16
         }
17
      }
17
      }
18
  )}) 
18
  )}) 
19
.factory('CategoryProducts', function($resource,apihost) {
19
.factory('CategoryProducts', function($resource,apihost) {
20
  return $resource(apihost+"/store_products/bycategory/?user_id=:me",
20
  return $resource(apihost+"store_products/bycategory/:me/page:"+":page",
21
      {callback: "JSON_CALLBACK"} , 
21
      {callback: "JSON_CALLBACK"} , 
22
      { all: {
22
      { all: {
23
          method: "JSONP",
23
          method: "JSONP",
24
         }
24
         }
25
      }
25
      }