mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(svcs): ♻️🎨 ren/tidy resources
This commit is contained in:
parent
4481941546
commit
1c02e94bb3
3 changed files with 6 additions and 6 deletions
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
var builder = DistributedApplication.CreateBuilder(args);
|
||||
|
||||
var apiService = builder.AddProject<FilterLists_ApiService>("apiservice");
|
||||
var directoryApi = builder.AddProject<FilterLists_ApiService>("directoryapi");
|
||||
|
||||
builder.AddProject<FilterLists_Web>("webfrontend")
|
||||
.WithExternalHttpEndpoints()
|
||||
.WithReference(apiService);
|
||||
builder.AddProject<FilterLists_Web>("web")
|
||||
.WithReference(directoryApi)
|
||||
.WithExternalHttpEndpoints();
|
||||
|
||||
builder.Build().Run();
|
||||
|
|
@ -14,7 +14,7 @@ public async Task GetWebResourceRootReturnsOkStatusCode()
|
|||
await app.StartAsync();
|
||||
|
||||
// Act
|
||||
var httpClient = app.CreateHttpClient("webfrontend");
|
||||
var httpClient = app.CreateHttpClient("web");
|
||||
var response = await httpClient.GetAsync("/");
|
||||
|
||||
// Assert
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
{
|
||||
// This URL uses "https+http://" to indicate HTTPS is preferred over HTTP.
|
||||
// Learn more about service discovery scheme resolution at https://aka.ms/dotnet/sdschemes.
|
||||
client.BaseAddress = new Uri("https+http://apiservice");
|
||||
client.BaseAddress = new Uri("https+http://directoryapi");
|
||||
});
|
||||
|
||||
var app = builder.Build();
|
||||
|
|
|
|||
Loading…
Reference in a new issue