Home Reference Source Test

src/middlewares/response-handler.js

/**
 * Generic success response handler
 *
 * @author Chetan Patil
 *
 * @param {*} body - response that needs to be returned as part of API result
 */
export default body => ({
  success: true,
  body,
});