I'm using Typescript with nodejs.I have callback function and i'm getting data as a object in body when i console. I want to pass data in data key of ctx.body. Can i push that object in other variable and then pass to ctx.body?
router.post('/api/send_otp', async (ctx: Koa.Context, next: () => Promise<any>) => {
        var phone = ctx.request.body.phone;
        if (!phone) {
            ctx.body = {
                message: "Please enter phone number",
            };
        } else {
    var options = {
        url: '',
        method: 'POST',
        auth: {
            'user': '',
            'pass': ''
        },
    };
    const callback = function(error, response, body) {
        if (response) {
            console.log(body); // Getting data here
        }else{
            console.log('error',error);
        }
    };
    request(options,callback);
    ctx.body = {
        data: body,   //I want data here
    }
});
 
    