From ebb26ae709570a84004c27f34e9307c33ac6b000 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Fri, 19 Apr 2024 00:55:07 +0200 Subject: Add Solution --- solve/PhotoEditor/Program.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 solve/PhotoEditor/Program.cs (limited to 'solve/PhotoEditor/Program.cs') diff --git a/solve/PhotoEditor/Program.cs b/solve/PhotoEditor/Program.cs new file mode 100644 index 0000000..a0bbc6d --- /dev/null +++ b/solve/PhotoEditor/Program.cs @@ -0,0 +1,24 @@ +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.UseStaticFiles(); + +app.UseRouting(); + +app.UseAuthorization(); + +app.MapControllerRoute( + name: "default", + pattern: "{controller=Home}/{action=Index}"); + +app.Run(); -- cgit v1.2.3-71-gd317