mirror of
https://github.com/bitwarden/server
synced 2025-12-16 16:23:31 +00:00
added cipher history API for data syncing with client databases
This commit is contained in:
@@ -50,6 +50,14 @@ namespace Bit.Api.Controllers
|
||||
return new ListResponseModel<CipherResponseModel>(responses);
|
||||
}
|
||||
|
||||
[HttpGet("history")]
|
||||
public async Task<CipherHistoryResponseModel> Get(DateTime since)
|
||||
{
|
||||
var history = await _cipherRepository.GetManySinceRevisionDateAndUserIdWithDeleteHistoryAsync(
|
||||
since, new Guid(_userManager.GetUserId(User)));
|
||||
return new CipherHistoryResponseModel(history.Item1, history.Item2);
|
||||
}
|
||||
|
||||
[HttpPost("import")]
|
||||
public async Task PostImport([FromBody]ImportRequestModel model)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user