UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

13 lines (11 loc) 260 B
'use strict'; module.exports.handler = (event, context, callback) => { const httpData = event.requestContext.http; callback(null, { statusCode: 200, body: JSON.stringify({ path: httpData.path, method: httpData.method, }), }); };