Open reaktivo opened 12 years ago
Is there a way to to access the resource name and/or action from inside the request handler? e.g.
// app.js app.resource('user', require('./users.js'));
// users.js exports.index = function(req, res) { var resource = req.resource; var action = req.action; res.render(resource + "/" + action); }
Is there a way to to access the resource name and/or action from inside the request handler? e.g.