From bc5e5a1f472f33226a17bc926f6a88d744962222 Mon Sep 17 00:00:00 2001 From: Cristian Rodriguez Date: Wed, 18 Sep 2024 03:19:33 -0400 Subject: [PATCH] wip --- .github/workflows/build.yml | 2 +- src/API/Program.cs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0df8ef2..3319c11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: uses: actions/setup-dotnet@v4 - name: Restore solution - run: dotnet restore ./FastCleanArchitecture.sln + run: dotnet restore - name: Build solution run: dotnet build --no-restore --configuration Release diff --git a/src/API/Program.cs b/src/API/Program.cs index 8350b83..4346d1b 100644 --- a/src/API/Program.cs +++ b/src/API/Program.cs @@ -2,9 +2,7 @@ using FastCleanArchitecture.Infrastructure; var builder = WebApplication.CreateBuilder(args); -#if (UseController) builder.Services.AddControllers(); -#endif builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); @@ -23,9 +21,7 @@ app.UseHttpsRedirection(); -#if (UseController) app.MapControllers(); -#endif await app.UseInfrastructureAsync();