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:
@ -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.");
|
||||
|
Reference in New Issue
Block a user