permissionController.js 377 B

1234567891011121314
  1. var restful = require('node-restful');
  2. module.exports = function(app, route) {
  3. // Setup the controller for REST;
  4. var rest = restful.model('permission',app.models.permission).methods(['get','put','post','delete']);
  5. //Resgister this endpoint with the application
  6. rest.register(app,route);
  7. // Return middleware.
  8. return function(req, res, next) {
  9. next();
  10. };
  11. };