From 36195eb0c97b1392ff509e445f76dd6ca1edf221 Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Wed, 2 Dec 2020 17:15:08 -0500 Subject: [PATCH] disable send for release (#1019) --- 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 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.");