Created
June 5, 2020 20:15
-
-
Save MarcoPolo/d5713bb6049a14ea851475bb06e068da to your computer and use it in GitHub Desktop.
Hello World with Deno and Lambda
This file contains hidden or 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 { | |
APIGatewayProxyEvent, | |
APIGatewayProxyResult, | |
Context | |
} from "https://deno.land/x/lambda/mod.ts"; | |
export default async function ( | |
event: APIGatewayProxyEvent, | |
context: Context | |
): Promise<APIGatewayProxyResult> { | |
return { | |
body: `Welcome to deno ${Deno.version.deno} 🦕`, | |
headers: { "content-type": "text/html;charset=utf8" }, | |
statusCode: 200 | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment