Initial commit.
This commit is contained in:
commit
0335f5aa93
1168 changed files with 261999 additions and 0 deletions
app/scripts/services
18
app/scripts/services/nodeService.js
Normal file
18
app/scripts/services/nodeService.js
Normal 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);
|
||||
}
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue