Coursach/Course/ImplementerApp/Program.cs
Sergey Kozyrev bb28208cfb ChangeWork
Хали Гали Кришна
Хали Гали Рама
Трали-вали, крыша
Где ты будешь завтра?
2024-04-28 21:35:19 +04:00

26 lines
507 B
C#

using Contracts.BusinessLogicsContracts;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews().AddRazorRuntimeCompilation();
var app = builder.Build();
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.Run();