You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
500 B
24 lines
500 B
|
4 weeks ago
|
using TargetService.Components;
|
||
|
|
|
||
|
|
var builder = WebApplication.CreateBuilder(args);
|
||
|
|
|
||
|
|
// Add services to the container.
|
||
|
|
builder.Services.AddRazorComponents()
|
||
|
|
.AddInteractiveServerComponents();
|
||
|
|
|
||
|
|
var app = builder.Build();
|
||
|
|
|
||
|
|
// Configure the HTTP request pipeline.
|
||
|
|
if (!app.Environment.IsDevelopment())
|
||
|
|
{
|
||
|
|
app.UseExceptionHandler("/Error", createScopeForErrors: true);
|
||
|
|
}
|
||
|
|
|
||
|
|
app.UseStaticFiles();
|
||
|
|
app.UseAntiforgery();
|
||
|
|
|
||
|
|
app.MapRazorComponents<App>()
|
||
|
|
.AddInteractiveServerRenderMode();
|
||
|
|
|
||
|
|
app.Run();
|