1
0
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:
Kyle Spearrin
2016-06-07 20:05:27 -04:00
parent 585d7b4afd
commit 6861303586
5 changed files with 107 additions and 11 deletions

View File

@ -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)
{