angular.module('CaptionService', []).factory('Caption', ['$http', function($http) {
  return {
    get : function() {
      return $http.get('/captions');
    }
  }
}]);
angular.module('CaptionService', [])
  .factory('Caption', ['$http', function($http) {
    return $http.get('/captions');
  }
}]);
Change caption factory