public APIGatewayProxyResponse FunctionHandler()

in {{ cookiecutter.solution_name }}/{{ cookiecutter.project_name }}/Function.cs [34:50]


        public APIGatewayProxyResponse FunctionHandler(APIGatewayProxyRequest apigProxyEvent, ILambdaContext context)
        {
            var location = GetCallingIP().Result;
            
            var body = new Dictionary<string, string>
            {
                { "message", "hello world" },
                { "location", location },
            };

            return new APIGatewayProxyResponse
            {
                Body = JsonConvert.SerializeObject(body),
                StatusCode = 200,
                Headers = new Dictionary<string, string> { { "Content-Type", "application/json" } }
            };
        }