summaryrefslogtreecommitdiff
path: root/Program.cs
blob: 1b97a781ca324d7cfe715126762b4f2f34ee1f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddControllersWithViews();

var app = builder.Build();

app.UseHttpsRedirection();
app.UseStaticFiles();

app.UseRouting();

app.UseAuthorization();

app.MapControllerRoute(name: "default", pattern: "{controller=Api}/{action=Get}/{key}");

app.Run();