mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05: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