import { APIGatewayEvent , Callback , Context , Handler } from 'aws-lambda' ; export const privateEndpoint = ( event , context , callback ) => { callback ( null , { body : JSON . stringify ( { message : 'Hi ⊂◉‿◉つ from Private API. Only logged in users can see this' , } ) , headers : { 'Access-Control-Allow-Credentials' : true , 'Access-Control-Allow-Origin' : '*' , } , statusCode : 200 , } ) ; } ;