mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
Added cipher service with bulk import to account controller
This commit is contained in:
@ -53,7 +53,7 @@ namespace Bit.Api
|
||||
services.AddSingleton(s => globalSettings);
|
||||
|
||||
// Repositories
|
||||
var documentDBClient = DocumentClientHelpers.InitClient(globalSettings.DocumentDB);
|
||||
var documentDBClient = DocumentDBHelpers.InitClient(globalSettings.DocumentDB);
|
||||
services.AddSingleton<IUserRepository>(s => new Repos.UserRepository(documentDBClient, globalSettings.DocumentDB.DatabaseId));
|
||||
services.AddSingleton<ISiteRepository>(s => new Repos.SiteRepository(documentDBClient, globalSettings.DocumentDB.DatabaseId));
|
||||
services.AddSingleton<IFolderRepository>(s => new Repos.FolderRepository(documentDBClient, globalSettings.DocumentDB.DatabaseId));
|
||||
@ -116,6 +116,7 @@ namespace Bit.Api
|
||||
|
||||
// Services
|
||||
services.AddSingleton<IMailService, MailService>();
|
||||
services.AddSingleton<ICipherService, CipherService>();
|
||||
services.AddScoped<IUserService, UserService>();
|
||||
|
||||
// Cors
|
||||
|
Reference in New Issue
Block a user