ComputerHardwareStore_YouAr.../ComputerHardwareStore/VendorClient/Program.cs

27 lines
458 B
C#
Raw Normal View History

using VendorClient;
2024-05-01 19:39:07 +04:00
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews();
2024-05-01 19:39:07 +04:00
var app = builder.Build();
APIClient.Connect(builder.Configuration);
2024-05-01 19:39:07 +04:00
if (app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
2024-05-01 19:39:07 +04:00
}
app.UseStaticFiles();
app.UseRouting();
2024-05-01 19:39:07 +04:00
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
2024-05-01 19:39:07 +04:00
app.Run();