Skip to content

Instantly share code, notes, and snippets.

@MarcoPolo
Created June 5, 2020 20:15
Embed
What would you like to do?
Hello World with Deno and Lambda
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