Blame view

resources/js/common/services/subscription.js 303 Bytes
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
  angular.module('footyroom')
  
  .service('subscription', ['$http', function ($http) {
      return function setSubscription(objectType, objectId, status) {
          return $http.post('/subscriptions/' + status, {
              subject_type: objectType,
              subject_id: objectId,
          });
      };
  }]);