serverless-offline
Advanced tools
Comparing version 0.1.4 to 0.1.5
10
index.js
@@ -67,3 +67,11 @@ 'use strict'; | ||
return Promise.resolve(); | ||
// If prefix, redirection from / to prefix | ||
if (prefix !== '/') this.server.route({ | ||
method: '*', | ||
path: '/', | ||
config: { cors: true }, | ||
handler: (request, reply) => { | ||
reply().redirect(prefix); | ||
} | ||
}); | ||
} | ||
@@ -70,0 +78,0 @@ |
{ | ||
"name": "serverless-offline", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Simulates your API Gateway ressources locally to call your lambda functions offline", | ||
@@ -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
12900
167