summaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2024-03-22 17:08:07 +0000
committerIan C <ianc@noddybox.co.uk>2024-03-22 17:08:07 +0000
commitfc456e21c2d70854744b4e1dc816783d9820a01c (patch)
tree0a8a9343d8a5788471b16489e36b777abbdfe7bf /Program.cs
parent1f61b2afecb32b5d75268642a49ce9556f505796 (diff)
Added skeleton of get operation.
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();