mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
Extract logic into service
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Bit.SeederApi.Services;
|
||||
using Bit.SharedWeb.Utilities;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
@@ -14,6 +15,9 @@ builder.Services.AddCustomDataProtectionServices(builder.Environment, globalSett
|
||||
// Repositories
|
||||
builder.Services.AddDatabaseRepositories(globalSettings);
|
||||
|
||||
// Recipe Service
|
||||
builder.Services.AddScoped<IRecipeService, RecipeService>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
|
||||
Reference in New Issue
Block a user