This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
'use strict'; | |
let app = angular.module('googleTagManager', ['angularLoad']); | |
const gtmId = 'GTM-AAAAAAA' | |
const gtmAuth = 'abcd1234' | |
const gtmEnvId = 'env-1' | |
function addGTM(doc) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const api = new apigateway.RestApi(this, 'ApiGateway', { | |
restApiName: props.stackName, | |
description: 'My API', | |
endpointExportName: `${props.stackName}-api-url`, | |
deployOptions: { | |
stageName: props.stage, | |
}, | |
defaultCorsPreflightOptions: { | |
allowOrigins: ['*'], | |
allowCredentials: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import apigateway = require('@aws-cdk/aws-apigateway') | |
export interface IHierarchicalRestApiResourcesProps { | |
readonly api: apigateway.RestApi | |
readonly resources?: IHierarchicalResourceProps[] | |
readonly rootMethods?: IHierarchicalMethodProps[] | |
} | |
export interface IHierarchicalResourceProps { | |
readonly pathPart: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new HierarchicalRestApiResources({ | |
api: api, | |
resources: [ | |
{ | |
pathPart: 'collections', | |
methods: [ | |
{ | |
httpMethod: 'GET', | |
integration: new apigateway.LambdaIntegration(collectionsGetLambda), | |
}, |