I am binding the apis from aws but didn't httpMethod didnot Identified I didn't get why this happen? I already mapped the integration request in get request of api-gateway. Is there something that I missed?
Lambda function is shown below:
exports.handleHttpRequest = function (request, context, callback) {
    console.log('---------', request, request.httpMethod);
    switch (request.httpMethod) {
        case 'GET': {
        
            callback(null, "get case run");
            break;
        }
        case 'POST': {
            callback(null, "post Case run");
            break;
        }
        default:
            callback(null, "run default case");
    }
}
 
     
    