mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-15 17:28:26 -05:00
21 lines
431 B
C#
21 lines
431 B
C#
using Executable;
|
|
using Executable.DependencyInjection;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
// Add services to the container
|
|
builder.Services
|
|
.AddInfrastructure(builder.Configuration)
|
|
.AddApiServices();
|
|
|
|
builder.Logging.AddLogging(builder.Configuration);
|
|
|
|
var app = builder.Build();
|
|
|
|
// Configure the HTTP request pipeline
|
|
app.ConfigureApi();
|
|
|
|
// Initialize the host
|
|
await app.Init();
|
|
|
|
await app.RunAsync(); |