Merge pull request #405 from Nopik/deploy-params

Added support for properly deploying endpoints with `foo/{bar}/baz` form
This commit is contained in:
Eslam λ Hefnawy 2015-12-18 13:28:59 +02:00
commit 472e792b12

View File

@ -189,7 +189,7 @@ module.exports = function(SPlugin, serverlessPath) {
_this.deployedLambda = data.Configuration;
// Prepare StatementId
evt.endpoint.lambdaPolicyStatementId = ('s_apig' + evt.endpoint.path + '_' + evt.endpoint.method).replace(/\//g, '_');
evt.endpoint.lambdaPolicyStatementId = ('s_apig' + evt.endpoint.path + '_' + evt.endpoint.method).replace(/[\/{}]/g, '_');
SUtils.sDebug(
'"'