diff options
author | Ian C <ianc@noddybox.co.uk> | 2024-03-22 17:08:07 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2024-03-22 17:08:07 +0000 |
commit | fc456e21c2d70854744b4e1dc816783d9820a01c (patch) | |
tree | 0a8a9343d8a5788471b16489e36b777abbdfe7bf /Program.cs | |
parent | 1f61b2afecb32b5d75268642a49ce9556f505796 (diff) |
Added skeleton of get operation.
Diffstat (limited to 'Program.cs')
-rw-r--r-- | Program.cs | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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();
|