3 ms·
FYI - We are adding a support for responseJSON in the arguments so you can just write the above code like this function modifyResponse(args) { const {metho
by sachinjain 5y ago
FYI - We are adding a support for responseJSON in the arguments so you can just write the above code like this
function modifyResponse(args) {
const {method, url, response, responseType, requestHeaders, requestData, responseJSON} = args;
responseJSON.result.user.vip_end = "2030-06-11T14:16:20.000Z";
responseJSON.result.user.expire_in = "3573 days, 3 hours";
responseJSON.result.user.is_premium = true;
return responseJSON;
}