Rev 13551 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
angular.module('starter.services', []).value('apihost',"http://localdtr/").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/?user_id=:me",{callback: "JSON_CALLBACK"} ,{ all: {method: "JSONP",}})}).factory('CategoryProducts', function($resource,apihost) {return $resource(apihost+"/store_products/bycategory/?user_id=:me",{callback: "JSON_CALLBACK"} ,{ all: {method: "JSONP",}})});