@zenweb/controller
Advanced tools
@@ -56,3 +56,3 @@ "use strict"; | ||
| methods: method ? (Array.isArray(method) ? method : [method]) : ['GET'], | ||
| path: path || `/${propertyKey}`, | ||
| path: path || (propertyKey === 'index' ? '/' : `/${propertyKey}`), | ||
| middleware: middleware ? (Array.isArray(middleware) ? middleware : [middleware]) : [], | ||
@@ -59,0 +59,0 @@ handle: descriptor.value, |
+1
-1
| { | ||
| "name": "@zenweb/controller", | ||
| "version": "3.2.1", | ||
| "version": "3.3.0", | ||
| "description": "Zenweb Controller module", | ||
@@ -5,0 +5,0 @@ "exports": "./dist/index.js", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
9328
0.37%