From de8c80d6f80917937eb4226dad86c0d0d8f887f2 Mon Sep 17 00:00:00 2001 From: Yaser Moradi Date: Sun, 15 Sep 2024 00:34:39 +0200 Subject: [PATCH] feat(templates): remove unnecessary AddApplicationPart method call in Boilerplate #8556 (#8644) --- .../src/Server/Boilerplate.Server.Api/Program.Services.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Program.Services.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Program.Services.cs index 4d6ea7090a..baeec8d659 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Program.Services.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Program.Services.cs @@ -77,7 +77,9 @@ public static void ConfigureApiServices(this WebApplicationBuilder builder) services .AddControllers() + //#if (api == "Integrated") .AddApplicationPart(typeof(AppControllerBase).Assembly) + //#endif .AddOData(options => options.EnableQueryFeatures()) .AddDataAnnotationsLocalization(options => options.DataAnnotationLocalizerProvider = StringLocalizerProvider.ProvideLocalizer) .ConfigureApiBehaviorOptions(options =>