green-daybreak-91402
04/28/2022, 10:40 AM@pulumi/awsx
package for API Gateway, how are subroutes setup? Im trying to setup a route like this: /test/{proxy+}
but get this error:
Unable to create resource at path '/{proxy+}/{proxy+}': Cannot create a child of a resource with a greedy path variable: {proxy+}
I cant find an example of how to setup subroutes, this is how Ive setup my routes:
{
path: '/test/{proxy+}',
apiKeyRequired: false,
method: 'ANY',
eventHandler: functions.testFunction,
},
{
path: '/{proxy+}',
method: 'ANY',
apiKeyRequired: true,
target: apiServerTarget,
},