Open xizhao opened 8 years ago
Yes, you can use milestones to specify e.g. the attributes or include for a controller:
myResource.read.fetch.before(function(req, res, context) {
context.attributes = ['some', 'list', 'of', attributes'];
context.include = [ AndThisModel ];
return context.continue;
});
Thank you! can we make this more declarative in the config rather than having to set up middleware functions?
Is there a way we can specify the general config i.e.
include
orattributes
for the specific CRUD action? Similar to configuring search.example