subscription.js 303 Bytes
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,
        });
    };
}]);