reviewController.js 249 B

1234567891011
  1. var Resource = require('resourcejs');
  2. module.exports = function(app, route) {
  3. // Setup the controller for REST;
  4. Resource(app, '', route, app.models.review).rest();
  5. // Return middleware.
  6. return function(req, res, next) {
  7. next();
  8. };
  9. };