From fb06a6490e1abcb56d2ca11a7e1ad812dceb943f Mon Sep 17 00:00:00 2001 From: kumar dam Date: Sat, 29 Apr 2017 21:38:53 -0400 Subject: fixed all indents --- public/js/services/todoService.js | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'public/js/services/todoService.js') diff --git a/public/js/services/todoService.js b/public/js/services/todoService.js index 649c61f..a51db95 100644 --- a/public/js/services/todoService.js +++ b/public/js/services/todoService.js @@ -1,16 +1,14 @@ angular.module('todoService', []) - - // use the api - .factory('Todos', ['$http', function($http) { - return { - get : function() { - return $http.get('/api/todos'); - }, - create : function(data) { - return $http.post('/api/todos', data); - }, - delete : function(id) { - return $http.delete('/api/todos/' + id); - } - } - }]); \ No newline at end of file + .factory('Todos', ['$http', function($http) { + return { + get : function() { + return $http.get('/api/todos'); + }, + create : function(data) { + return $http.post('/api/todos', data); + }, + delete : function(id) { + return $http.delete('/api/todos/' + id); + } + } + }]); -- cgit v1.2.3