cfn/app.yaml [569:584]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          ddb = boto3.client('dynamodb')

          def respond(err, res=None):
            return {
                'statusCode': '400' if err else '200',
                'body': err.message if err else json.dumps(res),
                'headers': {
                    'Content-Type': 'application/json',
                    "Access-Control-Allow-Origin": "*",
                    "Access-Control-Allow-Credentials": 'true'
                },
            }
        
          def handler(event, context):
            print("Received event: " + json.dumps(event, indent=2))
            operation = event['httpMethod']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cfn/app.yaml [647:662]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          ddb = boto3.client('dynamodb')

          def respond(err, res=None):
            return {
                'statusCode': '400' if err else '200',
                'body': err.message if err else json.dumps(res),
                'headers': {
                    'Content-Type': 'application/json',
                    "Access-Control-Allow-Origin": "*",
                    "Access-Control-Allow-Credentials": 'true'
                },
            }
        
          def handler(event, context):
            print("Received event: " + json.dumps(event, indent=2))
            operation = event['httpMethod']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



