отредачен Program.cs, "последний штрих" (но я этому не верю)

This commit is contained in:
malimova 2024-05-03 20:16:28 +04:00
parent b9af189daa
commit eabba7f27c

View File

@ -1,3 +1,5 @@
using ConfectioneryClientApp;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
// Add services to the container. // Add services to the container.
@ -5,6 +7,8 @@ builder.Services.AddControllersWithViews();
var app = builder.Build(); var app = builder.Build();
APIClient.Connect(builder.Configuration);
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment()) if (!app.Environment.IsDevelopment())
{ {