From dd207aa8401a62a6a3200ad3341063e2314a60cd Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Tue, 19 Jan 2021 16:46:59 -0500 Subject: [PATCH] disable send (#1096) --- src/Api/Controllers/SendsController.cs | 2 ++ 1 file changed, 2 insertions(+) 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.");