Created
December 19, 2021 13:19
-
-
Save leegilmorecode/fd2f8cb5900ae26a882c48029ea1015f to your computer and use it in GitHub Desktop.
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
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