32 lines
595 B
C#
32 lines
595 B
C#
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.CreateUmbracoBuilder()
|
|
.AddBackOffice()
|
|
.AddWebsite()
|
|
.AddDeliveryApi()
|
|
.AddComposers()
|
|
.Build();
|
|
|
|
WebApplication app = builder.Build();
|
|
|
|
await app.BootUmbracoAsync();
|
|
|
|
#if (UseHttpsRedirect)
|
|
app.UseHttpsRedirection();
|
|
#endif
|
|
|
|
app.UseUmbraco()
|
|
.WithMiddleware(u =>
|
|
{
|
|
u.UseBackOffice();
|
|
u.UseWebsite();
|
|
})
|
|
.WithEndpoints(u =>
|
|
{
|
|
u.UseInstallerEndpoints();
|
|
u.UseBackOfficeEndpoints();
|
|
u.UseWebsiteEndpoints();
|
|
});
|
|
|
|
await app.RunAsync();
|