Optim: multi files organisation

This commit is contained in:
2015-10-29 13:39:28 +00:00
parent e4022bf5bd
commit 37908bdb9f
10 changed files with 99 additions and 111 deletions

21
lib/methods.js Normal file
View File

@@ -0,0 +1,21 @@
Meteor.methods({
listProjects: function() {
return ProjectService.list();
},
getProject: function(id) {
return ProjectService.get(id);
},
addProject: function(label, git_url, public_url ,commands) {
ProjectService.insert(label, git_url, public_url ,commands);
},
editProject: function(id, label, git_url, public_url ,commands) {
ProjectService.update(id, label, git_url, public_url ,commands);
},
deleteProject: function(id) {
ProjectService.delete(id);
}
});