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.
Files changed (2) hide show
  1. package/Readme.md +1 -1
  2. 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
- // Define a function route
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambder",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",