1
0
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:
Hinton
2025-10-07 12:35:33 -07:00
parent fa46919409
commit d0d6bfb237
5 changed files with 160 additions and 75 deletions

View File

@@ -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.