nails-boilerplate 2.0.8 → 2.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nails-boilerplate",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "A node.js webserver scaffold",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -22,10 +22,12 @@ export default [
22
22
  ['get', "/", {controller: 'home'}],
23
23
  // Routes all requests starting with /public as static requests to the public folder.
24
24
  ['get', '/public', {public: true}],
25
+
25
26
  // A test route which routes the first part of pathname to controller and the second to the action
26
- ['get', /^\/(\w+)\/(\w+)$/i, {0: 'controller', 1: 'action'}],
27
+ // ['get', /^\/(\w+)\/(\w+)$/i, {0: 'controller', 1: 'action'}],
28
+
27
29
  // Maps the first two parts of the path to controller and action, and the third to the id parameter
28
- ['get', "/:controller/:action/:id"],
30
+ // ['get', "/:controller/:action/:id"],
29
31
 
30
32
  // For all other GET requests, render HomeController#index
31
33
  ['get', '/:catchall', {controller: 'home'}],