Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrd committed Sep 18, 2024
1 parent fe1026a commit bc5e5a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions src/API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
using FastCleanArchitecture.Infrastructure;

var builder = WebApplication.CreateBuilder(args);
#if (UseController)
builder.Services.AddControllers();
#endif

builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
Expand All @@ -23,9 +21,7 @@

app.UseHttpsRedirection();

#if (UseController)
app.MapControllers();
#endif

await app.UseInfrastructureAsync();

Expand Down

0 comments on commit bc5e5a1

Please sign in to comment.