summaryrefslogtreecommitdiffstats
path: root/solve/PhotoEditor/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'solve/PhotoEditor/Program.cs')
-rw-r--r--solve/PhotoEditor/Program.cs24
1 files changed, 24 insertions, 0 deletions
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();