1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-09 07:08:15 -05:00

enable send

This commit is contained in:
Kyle Spearrin 2020-12-11 16:44:39 -05:00
parent 70f5fd5030
commit 25dff79527

@ -84,7 +84,6 @@ namespace Bit.Api.Controllers
[HttpPost("")] [HttpPost("")]
public async Task<SendResponseModel> Post([FromBody] SendRequestModel model) public async Task<SendResponseModel> Post([FromBody] SendRequestModel model)
{ {
throw new NotFoundException();
var userId = _userService.GetProperUserId(User).Value; var userId = _userService.GetProperUserId(User).Value;
var send = model.ToSend(userId, _sendService); var send = model.ToSend(userId, _sendService);
await _sendService.SaveSendAsync(send); await _sendService.SaveSendAsync(send);
@ -96,7 +95,6 @@ namespace Bit.Api.Controllers
[DisableFormValueModelBinding] [DisableFormValueModelBinding]
public async Task<SendResponseModel> PostFile() public async Task<SendResponseModel> PostFile()
{ {
throw new NotFoundException();
if (!Request?.ContentType.Contains("multipart/") ?? true) if (!Request?.ContentType.Contains("multipart/") ?? true)
{ {
throw new BadRequestException("Invalid content."); throw new BadRequestException("Invalid content.");