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 @@ +