lambderize the moto lambda
This commit is contained in:
parent
79fe9df6cc
commit
6c577091da
4 changed files with 146 additions and 46 deletions
|
|
@ -43,7 +43,7 @@ class LambdaResponse(BaseResponse):
|
|||
if lambda_backend.has_function(function_name):
|
||||
fn = lambda_backend.get_function(function_name)
|
||||
payload = fn.invoke(request, headers)
|
||||
return 200, headers, payload
|
||||
return 202, headers, payload
|
||||
else:
|
||||
return 404, headers, "{}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue