From fc456e21c2d70854744b4e1dc816783d9820a01c Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 22 Mar 2024 17:08:07 +0000 Subject: Added skeleton of get operation. --- Program.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Program.cs') 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(); -- cgit v1.2.3