Initial commit: Domain model, Infrastructure, and Database setup

This commit is contained in:
steinhelge
2025-11-23 15:44:46 +01:00
commit 0661bebd87
49 changed files with 5857 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
using Microsoft.AspNetCore.Mvc;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddHttpClient("Backend", client =>
{
client.BaseAddress = new Uri(builder.Configuration["BackendUrl"] ?? "http://localhost:5163");
});
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllers();
app.Run();