Fix port binding (#31)
All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m47s

Reviewed-on: #31
This commit was merged in pull request #31.
This commit is contained in:
2025-04-28 21:06:37 +02:00
parent c12e31dfeb
commit 4c1c918bd6
3 changed files with 11 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
using GameIdeas.Resources;
using GameIdeas.Shared.Constants;
using GameIdeas.Shared.Model;
using GameIdeas.WebAPI.Context;
using GameIdeas.WebAPI.Services.Categories;
@@ -93,6 +94,8 @@ services.AddCors(option => option.AddDefaultPolicy(policy =>
.AllowAnyHeader()
.WithMethods("GET", "POST", "PUT", "DELETE")));
builder.WebHost.UseUrls($"http://127.0.0.1:{GlobalConstants.API_PORT}");
var app = builder.Build();
using (var scope = app.Services.CreateScope())