25 lines
416 B
C#
25 lines
416 B
C#
|
var builder = WebApplication.CreateBuilder(args);
|
||
|
|
||
|
builder.Services.AddRazorPages();
|
||
|
builder.Services.AddHttpClient();
|
||
|
builder.Services.AddServerSideBlazor();
|
||
|
|
||
|
var app = builder.Build();
|
||
|
|
||
|
if (!app.Environment.IsDevelopment())
|
||
|
{
|
||
|
app.UseExceptionHandler("/Error");
|
||
|
app.UseHsts();
|
||
|
}
|
||
|
|
||
|
app.UseHttpsRedirection();
|
||
|
app.UseStaticFiles();
|
||
|
|
||
|
app.UseRouting();
|
||
|
|
||
|
app.UseAuthorization();
|
||
|
|
||
|
app.MapRazorPages();
|
||
|
|
||
|
app.Run();
|