mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Merge pull request #405 from Nopik/deploy-params
Added support for properly deploying endpoints with `foo/{bar}/baz` form
This commit is contained in:
commit
472e792b12
@ -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(
|
||||
'"'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user