Skip to content

Commit fd0a9ae

Browse files
authored
Merge pull request AnomalyInnovations#6 from kilakewe/patch-1
Update handler.ts
2 parents 0b450df + 52f4193 commit fd0a9ae

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

handler.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import { Context, APIGatewayEvent, APIGatewayProxyResult } from "aws-lambda";
1+
import { APIGatewayProxyHandler } from "aws-lambda";
22

3-
export async function hello(
4-
event: APIGatewayEvent,
5-
context: Context
6-
): Promise<APIGatewayProxyResult> {
3+
export const hello: APIGatewayProxyHandler = async (event, context) => {
74
return {
85
statusCode: 200,
96
body: JSON.stringify({
@@ -12,4 +9,4 @@ export async function hello(
129
event,
1310
}),
1411
};
15-
}
12+
};

0 commit comments

Comments
 (0)