initial backend

This commit is contained in:
2025-09-05 13:40:15 +02:00
parent ab588833b6
commit 48c1811c30
16 changed files with 210 additions and 7 deletions

28
Server/Program.cs Normal file
View File

@@ -0,0 +1,28 @@
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();
app.UseDefaultFiles();
app.MapStaticAssets();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.MapOpenApi();
}
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllers();
app.MapFallbackToFile("/index.html");
app.Run();