ComputerHardwareStore_YouAr.../ComputerHardwareStore/StoreKeeperClient/Program.cs

26 lines
501 B
C#
Raw Permalink Normal View History

using StoreKeeperClient;
2024-05-01 19:43:56 +04:00
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews();
2024-05-01 19:43:56 +04:00
var app = builder.Build();
APIClient.Connect(builder.Configuration);
2024-05-01 19:43:56 +04:00
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
2024-05-01 19:43:56 +04:00
}
app.UseStaticFiles();
app.UseRouting();
2024-05-01 19:43:56 +04:00
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
2024-05-29 18:48:47 +04:00
pattern: "{controller=Home}/{action=Enter}/{id?}");
2024-05-01 19:43:56 +04:00
app.Run();