Skip to content

Instantly share code, notes, and snippets.

@LukeMwila
Created May 5, 2019 20:08
Show Gist options
  • Save LukeMwila/88f841aafe3f2b898b01b60b498ba8af to your computer and use it in GitHub Desktop.
Save LukeMwila/88f841aafe3f2b898b01b60b498ba8af to your computer and use it in GitHub Desktop.
Default handler file
import { APIGatewayEvent, Callback, Context, Handler } from 'aws-lambda';
export const hello: Handler = (event: APIGatewayEvent, context: Context, cb: Callback) => {
const response = {
statusCode: 200,
body: JSON.stringify({
message: 'Go Serverless Webpack (Typescript) v1.0! Your function executed successfully!',
input: event,
}),
};
cb(null, response);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment