Initial commit.

This commit is contained in:
Andreas Baldeau 2014-05-12 20:08:19 +02:00
commit 0335f5aa93
1168 changed files with 261999 additions and 0 deletions
app/scripts/services

View file

@ -0,0 +1,18 @@
'use strict';
angular.module('ffffng')
.service('NodeService', function ($http) {
return {
'createNode': function (node) {
return $http.post('/api/node', node);
},
'updateNode': function (node, token) {
return $http.put('/api/node/' + token, node);
},
'getNode': function (token) {
return $http.get('/api/node/' + token);
}
};
});