diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs index a7faa2c..07048fa 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs @@ -25,31 +25,14 @@ public class InvokeRecActionCommandHandler(ISender sender) : IRequestHandler await http.GetAsync(action.EndpointUri, cancel), + "POST" => await http.PostAsync(action.EndpointUri, null, cancel), + "PUT" => await http.PutAsync(action.EndpointUri, null, cancel), + "DELETE" => await http.DeleteAsync(action.EndpointUri, cancel), + _ => throw new BadRequestException($"The REST type {action.RestType} is not supported.") + }; } } } \ No newline at end of file