Skip to content

Instantly share code, notes, and snippets.

@daffl
Created June 24, 2015 14:13
Show Gist options
  • Select an option

  • Save daffl/442536accc24183aa9db to your computer and use it in GitHub Desktop.

Select an option

Save daffl/442536accc24183aa9db to your computer and use it in GitHub Desktop.
Get the request object in a service
var app = feathers()
.configure(feathers.rest())
.use(function(req, res, next) {
req.feathers.request = req;
next();
})
.use('/todos', {
get: function(id, params, callback) {
params.request
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment