Skip to content

Commit 431f4a5

Browse files
authored
Update call-web-api.md (#33894)
1 parent cdb66bb commit 431f4a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aspnetcore/blazor/call-web-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ If you're calling an external web API (not in the same URL space as the client a
520520

521521
```csharp
522522
builder.Services.AddHttpClient("WebAPI", client =>
523-
client.BaseAddress = new Uri(https://localhost:5001));
523+
client.BaseAddress = new Uri("https://localhost:5001"));
524524
```
525525

526526
In the following component code:
@@ -618,7 +618,7 @@ If you're calling an external web API (not in the same URL space as the client a
618618

619619
```csharp
620620
builder.Services.AddHttpClient<ForecastHttpClient>(client =>
621-
client.BaseAddress = new Uri(https://localhost:5001));
621+
client.BaseAddress = new Uri("https://localhost:5001"));
622622
```
623623

624624
Components inject the typed <xref:System.Net.Http.HttpClient> to call the web API.

0 commit comments

Comments
 (0)