33 lines
677 B
C#
33 lines
677 B
C#
using Umbraco.KeycloakShowcase.Web.Extensions;
|
|
|
|
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.CreateUmbracoBuilder()
|
|
.AddBackOffice()
|
|
.AddWebsite()
|
|
.AddDeliveryApi()
|
|
.AddComposers()
|
|
.AddBackOfficeKeycloakAuthentication()
|
|
.Build();
|
|
|
|
WebApplication app = builder.Build();
|
|
|
|
await app.BootUmbracoAsync();
|
|
|
|
app.UseMiddleware<UrlEncodingMiddleware>();
|
|
|
|
app.UseUmbraco()
|
|
.WithMiddleware(u =>
|
|
{
|
|
u.UseBackOffice();
|
|
//u.UseWebsite();
|
|
})
|
|
.WithEndpoints(u =>
|
|
{
|
|
u.UseInstallerEndpoints();
|
|
u.UseBackOfficeEndpoints();
|
|
//u.UseWebsiteEndpoints();
|
|
});
|
|
|
|
await app.RunAsync();
|