Scaffold ASP.NET Core Web API backend

This commit is contained in:
EugeneTes
2026-08-15 11:26:23 +00:00
parent fd9ff55ffa
commit f7b0b7fb59
6 changed files with 72 additions and 0 deletions

21
backend/Program.cs Normal file
View File

@@ -0,0 +1,21 @@
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddOpenApi();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.MapOpenApi();
}
app.UseAuthorization();
app.MapControllers();
app.Run();