Skip to content

Instantly share code, notes, and snippets.

@leegilmorecode
Created December 19, 2021 13:19
Show Gist options
  • Save leegilmorecode/fd2f8cb5900ae26a882c48029ea1015f to your computer and use it in GitHub Desktop.
Save leegilmorecode/fd2f8cb5900ae26a882c48029ea1015f to your computer and use it in GitHub Desktop.
async function handler(): Promise<{ body: string; statusCode: number }> {
console.log("get-stock.handler - started");
return {
body: JSON.stringify({
stock: [
{
stockId: 1,
description: "hammers",
},
{
stockId: 2,
description: "paint brushes",
},
],
}),
statusCode: 200,
};
}
module.exports = { handler };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment