You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/languages/node.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
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.
4
4
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
+
5
9
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.
6
10
7
11
Async/await is supported by the handler by default.
0 commit comments