diff --git a/src/Api/Controllers/SendsController.cs b/src/Api/Controllers/SendsController.cs index 5a188bffd8..c737500e35 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(); var userId = _userService.GetProperUserId(User).Value; var send = model.ToSend(userId, _sendService); await _sendService.SaveSendAsync(send); @@ -95,6 +96,7 @@ namespace Bit.Api.Controllers [DisableFormValueModelBinding] public async Task PostFile() { + throw new NotFoundException(); if (!Request?.ContentType.Contains("multipart/") ?? true) { throw new BadRequestException("Invalid content.");