Skip to content

Commit

Permalink
Fix handler
Browse files Browse the repository at this point in the history
  • Loading branch information
dac09 committed Dec 7, 2023
1 parent ff0e9c6 commit 10275bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/api-server/src/plugins/lambdaLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ export const fetchRequestHandler = async (
reply,
})

console.log(`👉 \n ~ file: lambdaLoader.ts:99 ~ response:`, response)

response.headers.forEach((value, key) => {
reply.header(key, value)
})
Expand Down
2 changes: 1 addition & 1 deletion packages/api-server/src/plugins/withFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const withFunctions = async (
await configureFastify(fastify, { side: 'api', ...options })
}

fastify.all(`/fetchReq`, fetchRequestHandler)
fastify.all(`/fetchReq/:routeName`, fetchRequestHandler)

// fastify.all(`${apiRootPath}:routeName`, createServerAdapter(genericRequestHandler))
fastify.all(`${apiRootPath}:routeName`, lambdaRequestHandler)
Expand Down

0 comments on commit 10275bb

Please sign in to comment.