How can get access to req.header in the 'before save' callbacks?
Code
CofeeShop.observe('before save', function(ctx,next){
ctx.req.headers['key'] ; // I want to do something like this.. this works in express but not in strongloop
//
//
});
In case this is not possible how can I override the
@abhay8nitt I think you have the wrong repo, and I can't really infer your question from your post. Are you sure you have the right repo? It looks like you might want to make the issue in StrongLoop instead.
@abhay8nitt the correct repo to open the issue is at https://github.com/strongloop/loopback.
Most helpful comment
@abhay8nitt I think you have the wrong repo, and I can't really infer your question from your post. Are you sure you have the right repo? It looks like you might want to make the issue in StrongLoop instead.