service.js 311 Bytes edit raw blame history 1 2 3 4 5 6 7 8 9 angular.module('focaModalPetroleras') .service('focaPetrolerasService', ['$http', function($http) { var configRoute ='http://localhost:9900'; return { getPetroleras: function(json) { return $http.post(configRoute + '/petroleras', json); } } }])