diff --git a/serverless.yml b/serverless.yml index c4a915c..3ebcae5 100755 --- a/serverless.yml +++ b/serverless.yml @@ -64,6 +64,14 @@ functions: path: "/cards" cors: true + updateCardsFromAirtable: + handler: BigHack.Fumble.Api::BigHack.Fumble.Api.LambdaFunctions::updateFromAirtable + events: + - http: + method: POST + path: "/updateFromAirtable" + cors: true + resources: Resources: CardsDynamoDBTable: diff --git a/src/LambdaFunctions.fs b/src/LambdaFunctions.fs index 4ba7f25..073ba3d 100644 --- a/src/LambdaFunctions.fs +++ b/src/LambdaFunctions.fs @@ -32,5 +32,5 @@ let updateFromAirtable (gatewayRequest : APIGatewayProxyRequest) Ok () |> handleJsonRequest lambdaContext "UpdateCards" - Workflow.updateFromAirtable + (fun ctx () -> Workflow.updateFromAirtable ctx) ResponseDto.mapEmptyResultToDto