PIbd-21_Pyatakov_KM_Markov_.../UniversityProvider/Program.cs

32 lines
669 B
C#
Raw Normal View History

using System.IO.Pipes;
2023-03-31 16:05:46 +04:00
var builder = WebApplication.CreateBuilder(args);
2023-04-08 22:40:05 +04:00
// Add services to the container.
builder.Services.AddControllersWithViews();
2023-03-31 16:05:46 +04:00
var app = builder.Build();
2023-04-08 22:40:05 +04:00
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
2023-03-31 16:27:11 +04:00
2023-04-08 22:40:05 +04:00
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
2023-03-31 16:05:46 +04:00
app.Run();