Skip to content

Instantly share code, notes, and snippets.

View Itabeh's full-sized avatar
🏠
Working from home

Isaac T. Itabeh

🏠
Working from home
View GitHub Profile
lambda function
----
exports.handler = async (event) => {
console.log(event)
const customerId = event.pathParameters.customerId;
const customer = {'customerId': customerId, 'customerName': "Customer " + customerId };
const response = {
statusCode: 200,
// Uncomment below to enable CORS requests
headers: {