Subversion Repositories SmartDukaan

Rev

Rev 13551 | Rev 13556 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

angular.module('starter.services', [])
.value('apihost',"http://dtr.shop2020.in/")
.factory('Categories', function($resource,apihost) {
  return $resource(apihost+"/categories/?user_id=:me",
      {callback: "JSON_CALLBACK"} , 
      { all: {
          method: "JSONP",
         }
      }
  )}) 
.factory('Products', function($resource,apihost) {
  return $resource(apihost+"store_products/index/:me/page:"+":page",
      {callback: "JSON_CALLBACK"} , 
      { all: {
          method: "JSONP",
         }
      }
  )}) 
.factory('CategoryProducts', function($resource,apihost) {
  return $resource(apihost+"store_products/bycategory/:me/page:"+":page",
      {callback: "JSON_CALLBACK"} , 
      { all: {
          method: "JSONP",
         }
      }
  )});