---
# System prepended metadata

title: mod12
tags: [Core]

---

```csharp
// program.cs
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddControllersWithViews();

//=======================================
var app = builder.Build();

app.UseStaticFiles();
app.MapControllerRoute("default",
    "{controller=Home}/{action=Index}/{id?}");

app.Run();

```