cscg24-photoeditor

CSCG 2024 Challenge 'PhotoEditor'
git clone https://git.sinitax.com/sinitax/cscg24-photoeditor
Log | Files | Refs | sfeed.txt

Program.cs (483B)


      1var builder = WebApplication.CreateBuilder(args);
      2
      3// Add services to the container.
      4builder.Services.AddControllersWithViews();
      5
      6var app = builder.Build();
      7
      8// Configure the HTTP request pipeline.
      9if (!app.Environment.IsDevelopment())
     10{
     11    app.UseExceptionHandler("/Home/Error");
     12}
     13
     14app.UseStaticFiles();
     15
     16app.UseRouting();
     17
     18app.UseAuthorization();
     19
     20app.MapControllerRoute(
     21    name: "default",
     22    pattern: "{controller=Home}/{action=Index}");
     23
     24app.Run();