Created
November 28, 2018 16:54
-
-
Save webhacking/daac127734451f07d35dbfa18abd9879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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