Skip to content

Instantly share code, notes, and snippets.

@webhacking
Created November 28, 2018 16:54
Show Gist options
  • Save webhacking/daac127734451f07d35dbfa18abd9879 to your computer and use it in GitHub Desktop.
Save webhacking/daac127734451f07d35dbfa18abd9879 to your computer and use it in GitHub Desktop.
import { Handler, Context, Callback } from 'aws-lambda';
interface HelloResponse {
statusCode: number;
body: string;
}
const hello: Handler = (event: any, context: Context, callback: Callback) => {
const response: HelloResponse = {
statusCode: 200,
body: JSON.stringify({
message: "Hello i'm hax0r"
})
};
callback(undefined, response);
};
export { hello }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment