summaryrefslogtreecommitdiffstats
path: root/solve/PhotoEditor/Program.cs
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2024-04-19 00:55:07 +0200
committerLouis Burda <quent.burda@gmail.com>2024-04-19 00:55:07 +0200
commitebb26ae709570a84004c27f34e9307c33ac6b000 (patch)
treeba83f56ec65986cab387c97b771cd0a26e566c60 /solve/PhotoEditor/Program.cs
parent84e77e74c8d69b33a25938a46700b67a3e835c88 (diff)
downloadcscg24-photoeditor-master.tar.gz
cscg24-photoeditor-master.zip
Add SolutionHEADmaster
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();