diff --git a/src/Api/Controllers/SendsController.cs b/src/Api/Controllers/SendsController.cs index 6b3751d67..c9cbe91fa 100644 --- a/src/Api/Controllers/SendsController.cs +++ b/src/Api/Controllers/SendsController.cs @@ -84,6 +84,7 @@ namespace Bit.Api.Controllers [HttpPost("")] public async Task Post([FromBody] SendRequestModel model) { + throw new NotFoundException(); model.ValidateCreation(); var userId = _userService.GetProperUserId(User).Value; var send = model.ToSend(userId, _sendService); @@ -96,6 +97,7 @@ namespace Bit.Api.Controllers [DisableFormValueModelBinding] public async Task PostFile() { + throw new NotFoundException(); if (!Request?.ContentType.Contains("multipart/") ?? true) { throw new BadRequestException("Invalid content.");