mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-22 12:49:35 -05:00
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
using Executable;
|
||||
using Executable.DependencyInjection;
|
||||
|
||||
var builder = Host.CreateApplicationBuilder(args);
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Add services to the container
|
||||
builder.Services
|
||||
.AddInfrastructure(builder.Configuration)
|
||||
.AddApiServices();
|
||||
|
||||
builder.Services.AddInfrastructure(builder.Configuration);
|
||||
builder.Logging.AddLogging(builder.Configuration);
|
||||
|
||||
var host = builder.Build();
|
||||
host.Init();
|
||||
var app = builder.Build();
|
||||
|
||||
host.Run();
|
||||
// Configure the HTTP request pipeline
|
||||
app.ConfigureApi();
|
||||
|
||||
// Initialize the host
|
||||
((IHost)app).Init();
|
||||
|
||||
app.Run();
|
||||
Reference in New Issue
Block a user