Skip to content

Commit d51586d

Browse files
committed
forgot to update package-lock for rest-api-construct
1 parent b6e3ce5 commit d51586d

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package-lock.json

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/rest-api-construct/API.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
import * as apiGateway from 'aws-cdk-lib/aws-apigateway';
88
import { Construct } from 'constructs';
9-
import { IFunction } from 'aws-cdk-lib/aws-lambda';
9+
import { FunctionResources } from '@aws-amplify/backend/types/platform';
10+
import { ResourceProvider } from '@aws-amplify/backend/types/platform';
1011

1112
// @public (undocumented)
1213
export type AuthorizerConfig = {
@@ -44,7 +45,7 @@ export type RestApiConstructProps = {
4445
export type RestApiPathConfig = {
4546
path: string;
4647
methods: MethodsProps[];
47-
lambdaEntry: IFunction;
48+
lambdaEntry: ResourceProvider<FunctionResources>;
4849
};
4950

5051
// (No @packageDocumentation comment for this package)

packages/rest-api-construct/src/construct.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export class RestApiConstruct extends Construct {
1919
});
2020

2121
// Iterate over each path configuration
22-
for (const pathConfig of Object.entries(props.apiProps)) {
23-
const { path, methods, lambdaEntry } = pathConfig[1];
22+
for (const pathConfig of props.apiProps) {
23+
const { path, methods, lambdaEntry } = pathConfig;
2424
// Add resource and methods for this route
2525
const resource = this.addNestedResource(this.api.root, path);
2626
for (const method of methods) {

0 commit comments

Comments
 (0)