Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MarcoPolo
Created June 5, 2020 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcoPolo/d5713bb6049a14ea851475bb06e068da to your computer and use it in GitHub Desktop.
Save MarcoPolo/d5713bb6049a14ea851475bb06e068da to your computer and use it in GitHub Desktop.
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