summaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/Program.cs b/Program.cs
index bc8438c..1b97a78 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,6 +1,16 @@
var builder = WebApplication.CreateBuilder(args);
+
+builder.Services.AddControllersWithViews();
+
var app = builder.Build();
-app.MapGet("/", () => "Hello World!");
+app.UseHttpsRedirection();
+app.UseStaticFiles();
+
+app.UseRouting();
+
+app.UseAuthorization();
+
+app.MapControllerRoute(name: "default", pattern: "{controller=Api}/{action=Get}/{key}");
app.Run();