Sunday, 9 April 2017

SailsJs Response (res) life Cycle

Is there a way to hook up a function or task to sails response , before emitting the functions, like for example , i have several res.ok(object_output); based on some conditions and in separate controllers , i want to intercept each res.ok (just like policies) to do something before returning the response.



via Theophilus Omoregbee

No comments:

Post a Comment