Added new Hamann-Project

This commit is contained in:
schnulller
2022-05-11 12:27:19 +02:00
parent c5f30d463c
commit 209c40258d
32 changed files with 2858 additions and 2 deletions

32
HaWeb/Program.cs Normal file
View File

@@ -0,0 +1,32 @@
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllersWithViews();
// builder.Services.AddWebOptimizer();
var app = builder.Build();
// 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.UseWebOptimizer();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Search}/{action=Index}/{id?}");
app.Run();