Skip to content

Commit

Permalink
feat: 在调用函数时增加原生的req对象 labring#290
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun authored Sep 13, 2022
1 parent e02d559 commit da00171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/app-service/src/handler/invoke-func.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export async function handleInvokeFunction(req: Request, res: Response) {
method: req.method,
auth: req['auth'],
requestId,
request: req,
response: res,
}
const result = await func.invoke(ctx)
Expand Down Expand Up @@ -95,4 +96,4 @@ export async function handleInvokeFunction(req: Request, res: Response) {
logger.error(requestId, 'failed to invoke error', error)
return res.status(500).send('Internal Server Error')
}
}
}

0 comments on commit da00171

Please sign in to comment.