aboutsummaryrefslogtreecommitdiff
path: root/public/js/services/todoService.js
diff options
context:
space:
mode:
authorkumar dam <kumar.damani@mail.utoronto.ca>2017-04-30 01:38:53 +0000
committerkumar dam <kumar.damani@mail.utoronto.ca>2017-04-30 01:38:53 +0000
commitfb06a6490e1abcb56d2ca11a7e1ad812dceb943f (patch)
tree9eed1c89a5c4b7e568e52a1473e24d0d520a672d /public/js/services/todoService.js
parentd52437a4f88af931f130c7bb259949a84db65276 (diff)
fixed all indents
Diffstat (limited to 'public/js/services/todoService.js')
-rw-r--r--public/js/services/todoService.js28
1 files changed, 13 insertions, 15 deletions
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);
+ }
+ }
+ }]);