Sha256: 917d04330f6a75629ca2354ec0b71788ea55dac568d85562816b2771ec8ba074
Contents?: true
Size: 355 Bytes
Versions: 22
Compression:
Stored size: 355 Bytes
Contents
module Jets::CommonMethods # Add API Gateway Stage Name def add_stage_name(url) if request.host.include?("amazonaws.com") && url.starts_with?('/') && !url.starts_with?('http') stage_name = Jets::Cfn::TemplateMappers::ApiGatewayDeploymentMapper.stage_name url = "/#{stage_name}#{url}" end url end end
Version data entries
22 entries across 22 versions & 1 rubygems