Skip to content

Commit 515a236

Browse files
committed
Add link to Node.js template source-code.
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 60f254e commit 515a236

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/languages/node.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The [Node.js](https://nodejs.org/en) template for OpenFaaS uses [Express.js](https://expressjs.com/) under the hood and the LTS version of Node, but provides an abstraction where you just work with an event and context object.
44

5+
!!! info "Where is the code for "openfaas"?"
6+
7+
You can customise the official templates, or provide your own. The code for this templates is available on GitHub: [openfaas/templates](https://github.com/openfaas/templates/tree/master/template/node20).
8+
59
The event is used to obtain the original HTTP request, and the context is used to set the HTTP response. The underlying Express.js object is an implementation detail, and so is not available to the function author.
610

711
Async/await is supported by the handler by default.

0 commit comments

Comments
 (0)