ffffng/server/router.js
2016-05-16 18:27:03 +02:00

13 lines
393 B
JavaScript

'use strict';
angular.module('ffffng').factory('Router', function (app, NodeResource) {
return {
init: function () {
app.post('/api/node', NodeResource.create);
app.put('/api/node/:token', NodeResource.update);
app.delete('/api/node/:token', NodeResource.delete);
app.get('/api/node/:token', NodeResource.get);
}
};
});