diff options
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();
|