Function model afterHeaders support
Function models now have support for afterHeaders
function by specifying a after_headers.js
file in the same directory as the model, and exporting a function accepting arguments error
, params
, and body
.
module.exports = function (error, params, body) {
return {
//Must return an object
};
};