1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-23 22:01:28 +01:00

return CipherResponseModel from attachment post

This commit is contained in:
Kyle Spearrin 2017-07-12 14:42:39 -04:00
parent e932f3a00a
commit 955755831c

View File

@ -224,7 +224,7 @@ namespace Bit.Api.Controllers
[HttpPost("{id}/attachment")]
[DisableFormValueModelBinding]
public async Task PostAttachment(string id)
public async Task<CipherResponseModel> PostAttachment(string id)
{
ValidateAttachment();
@ -241,6 +241,8 @@ namespace Bit.Api.Controllers
await _cipherService.CreateAttachmentAsync(cipher, stream, fileName,
Request.ContentLength.GetValueOrDefault(0), userId);
});
return new CipherResponseModel(cipher, _globalSettings);
}
[HttpPost("{id}/attachment/{attachmentId}/share")]