mirror of
https://github.com/bitwarden/server
synced 2025-12-14 15:23:42 +00:00
created ciphers API controller. Moved import to ciphers controller.
This commit is contained in:
@@ -202,15 +202,6 @@ namespace Bit.Api.Controllers
|
||||
return response;
|
||||
}
|
||||
|
||||
[HttpPost("import")]
|
||||
public async Task PostImport([FromBody]ImportRequestModel model)
|
||||
{
|
||||
await _cipherService.ImportCiphersAsync(
|
||||
model.Folders.Select(f => f.ToCipher(_userManager.GetUserId(User))).ToList(),
|
||||
model.Sites.Select(s => s.ToCipher(_userManager.GetUserId(User))).ToList(),
|
||||
model.SiteRelationships);
|
||||
}
|
||||
|
||||
[HttpPost("delete")]
|
||||
public async Task PostDelete([FromBody]DeleteAccountRequestModel model)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user