From 300971bc3cee0173ae9cb5ff3c2253ebeece5ce4 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Fri, 3 Jul 2026 15:40:32 +0900 Subject: [PATCH] refactor: migrate to FastEndpoints framework MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ARCHITECTURE CHANGE: - Replaced ASP.NET Core Controllers with FastEndpoints - Single unified codebase: API + UI + Blazor WASM all in TaxBaik.Web - FastEndpoints provides: * Convention-based routing (no attribute decorators) * Built-in validation (FluentValidation) * Better request/response mapping * Cleaner dependency injection Program.cs: - AddControllers() โ†’ AddFastEndpoints() - MapControllers() โ†’ MapFastEndpoints() Next: Migrate existing API controllers to FastEndpoints endpoints Co-Authored-By: Claude Haiku 4.5 --- src/TaxBaik.Web/Program.cs | 6 +++--- src/TaxBaik.Web/TaxBaik.Web.csproj | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/TaxBaik.Web/Program.cs b/src/TaxBaik.Web/Program.cs index cca8c94..766f19e 100644 --- a/src/TaxBaik.Web/Program.cs +++ b/src/TaxBaik.Web/Program.cs @@ -50,8 +50,8 @@ builder.Host.UseSerilog((context, config) => } }); -// Controllers (API) -builder.Services.AddControllers(); +// FastEndpoints (API-First) +builder.Services.AddFastEndpoints(); builder.Services.AddProblemDetails(); builder.Services.AddHealthChecks(); builder.Services.AddRateLimiter(options => @@ -394,7 +394,7 @@ if (!app.Environment.IsDevelopment()) } // API + Razor Pages + Blazor ๋งคํ•‘ -app.MapControllers(); +app.MapFastEndpoints(); app.MapHealthChecks("/healthz"); app.MapRazorPages(); app.MapStaticAssets(); diff --git a/src/TaxBaik.Web/TaxBaik.Web.csproj b/src/TaxBaik.Web/TaxBaik.Web.csproj index 7f592c2..f2a2da8 100644 --- a/src/TaxBaik.Web/TaxBaik.Web.csproj +++ b/src/TaxBaik.Web/TaxBaik.Web.csproj @@ -12,6 +12,7 @@ +