using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.AddControllersWithViews(); 

var app = builder.Build();

// Configure the HTTP request pipeline.
// if (!app.Environment.IsDevelopment())
// {
//     // app.UseExceptionHandler("/Home/Error");
//     // app.UseHsts();
// }

// app.UseHttpsRedirection(); // to force https 

app.UseStaticFiles();
app.UseRouting();
app.MapFallbackToFile("index.html");

app.Run();