1
Fork 0
mirror of https://github.com/Quackster/Minerva.git synced 2025-06-30 05:17:45 +00:00
Minerva/Helios.Imager/Program.cs

32 lines
932 B
C#
Raw Normal View History

2023-01-09 22:33:05 +10:00
namespace Helios.Imager
{
public class Program
{
public static void Main(string[] args)
{
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");
// 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.UseRouting();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.Run();
}
}
}