Modernize and Dockerize server

This commit is contained in:
2026-03-19 13:35:53 +01:00
parent 76a2bf0e88
commit 766ed86999
21 changed files with 364 additions and 161 deletions

View File

@@ -1,5 +1,11 @@
using CPATapi.Server.Interfaces;
using CPATapi.Server.Repository;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddTransient<ITapiDirectoryRepository, TapiDirectoryRepository>();
builder.Services.AddTransient<IZeitConsensRepository, ZeitConsensRepository>();
builder.Services.AddControllers();
var app = builder.Build();
@@ -13,4 +19,4 @@ app.UseAuthorization();
app.MapControllers();
app.Run();
await app.RunAsync();