Subversion Repositories SmartDukaan

Rev

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

Rev 13551 Rev 13555
Line 1... Line 1...
1
angular.module('starter.services', [])
1
angular.module('starter.services', [])
2
.value('apihost',"http://localdtr/")
2
.value('apihost',"http://dtr.shop2020.in/")
3
.factory('Categories', function($resource,apihost) {
3
.factory('Categories', function($resource,apihost) {
4
  return $resource(apihost+"/categories/?user_id=:me",
4
  return $resource(apihost+"/categories/?user_id=:me",
5
      {callback: "JSON_CALLBACK"} , 
5
      {callback: "JSON_CALLBACK"} , 
6
      { all: {
6
      { all: {
7
          method: "JSONP",
7
          method: "JSONP",
Line 21... Line 21...
21
      {callback: "JSON_CALLBACK"} , 
21
      {callback: "JSON_CALLBACK"} , 
22
      { all: {
22
      { all: {
23
          method: "JSONP",
23
          method: "JSONP",
24
         }
24
         }
25
      }
25
      }
26
  )}); 
-
 
27
26
  )}); 
-
 
27