1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00

enabled send and added send sync notifications (#1106)

This commit is contained in:
Addison Beck
2021-01-22 16:16:40 -05:00
committed by GitHub
parent 3555b15b91
commit b8a2158626
12 changed files with 182 additions and 2 deletions

View File

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