Comparing version 2.0.12 to 2.0.13
@@ -29,3 +29,3 @@ /* | ||
invariant(typeof options.path === 'string', 'Route options.path is required and has to be a string') | ||
invariant(typeof options.method === 'string' && ['GET', 'POST', 'PUT', 'UPDATE', 'DELETE'].indexOf(options.method.toUpperCase()) > -1, 'Route options.method has to be one of GET, POST, PUT, UPDATE, DELETE') | ||
invariant(typeof options.method === 'string' && ['GET', 'POST', 'PUT', 'UPDATE', 'DELETE', 'ALL', '*'].indexOf(options.method.toUpperCase()) > -1, 'Route options.method has to be one of GET, POST, PUT, UPDATE, DELETE') | ||
@@ -95,3 +95,3 @@ /** | ||
this.module.router[this._options.method.toLowerCase()](this._options.path, | ||
this.module.router[this._options.method === '*'? 'all' : this._options.method.toLowerCase()](this._options.path, | ||
initialMiddleware(this, this._options.disableExpiMiddleware), | ||
@@ -98,0 +98,0 @@ this._options.middleware.preHandler, |
{ | ||
"name": "expi", | ||
"version": "2.0.12", | ||
"version": "2.0.13", | ||
"description": "Modular API framework built with express", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31120