lambder 1.0.80 → 1.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +1 -1
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -60,7 +60,7 @@ lambder.addRoute(/\/hello-regex/, (ctx, res) => {
|
|
|
60
60
|
return res.json({ message: "Hello Regex" });
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
-
//
|
|
63
|
+
// Function routes allows routing on any context variable.
|
|
64
64
|
lambder.addRoute((ctx)=>ctx.path === '/hello-fn-route', (ctx, res) => {
|
|
65
65
|
return res.json({ message: "Hello from a function route" });
|
|
66
66
|
});
|