Skip to content

Commit 5dcd9d7

Browse files
committed
update examples with default value in signature
1 parent 7a21aca commit 5dcd9d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/ts/app/api.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { api } from '@manwaring/lambda-wrapper';
22
import 'source-map-support/register';
33

4-
export const handler = api(async ({ event, success, error }) => {
4+
export const handler = api(async ({ event, path = {}, success, error }) => {
55
try {
6+
const { query } = path;
7+
console.log(query);
68
const replacer = (key, value) => {
79
switch (key) {
810
case 'prop-to-ignore':

0 commit comments

Comments
 (0)