ComputerHardwareStore_YouAr.../ComputerHardwareStore/StoreKeeperClient/Program.cs
2024-05-29 18:48:47 +04:00

26 lines
501 B
C#

using StoreKeeperClient;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews();
var app = builder.Build();
APIClient.Connect(builder.Configuration);
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
}
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Enter}/{id?}");
app.Run();