Merge pull request #32340 from PlacidBits/main
fix(minimal-apis): rename 'consoto' to 'contoso'pull/32342/head
commit
504591e784
|
@ -143,7 +143,7 @@ app.MapGet("/text", () => Results.Text("This is some text"));
|
||||||
var proxyClient = new HttpClient();
|
var proxyClient = new HttpClient();
|
||||||
app.MapGet("/pokemon", async () =>
|
app.MapGet("/pokemon", async () =>
|
||||||
{
|
{
|
||||||
var stream = await proxyClient.GetStreamAsync("http://consoto/pokedex.json");
|
var stream = await proxyClient.GetStreamAsync("http://contoso/pokedex.json");
|
||||||
// Proxy the response as JSON
|
// Proxy the response as JSON
|
||||||
return Results.Stream(stream, "application/json");
|
return Results.Stream(stream, "application/json");
|
||||||
});
|
});
|
||||||
|
|
|
@ -642,7 +642,7 @@ var app = builder.Build();
|
||||||
var proxyClient = new HttpClient();
|
var proxyClient = new HttpClient();
|
||||||
app.MapGet("/pokemon", async () =>
|
app.MapGet("/pokemon", async () =>
|
||||||
{
|
{
|
||||||
var stream = await proxyClient.GetStreamAsync("http://consoto/pokedex.json");
|
var stream = await proxyClient.GetStreamAsync("http://contoso/pokedex.json");
|
||||||
// Proxy the response as JSON
|
// Proxy the response as JSON
|
||||||
return Results.Stream(stream, "application/json");
|
return Results.Stream(stream, "application/json");
|
||||||
});
|
});
|
||||||
|
|
|
@ -127,7 +127,7 @@ app.MapGet("/text", () => Results.Text("This is some text"));
|
||||||
var proxyClient = new HttpClient();
|
var proxyClient = new HttpClient();
|
||||||
app.MapGet("/pokemon", async () =>
|
app.MapGet("/pokemon", async () =>
|
||||||
{
|
{
|
||||||
var stream = await proxyClient.GetStreamAsync("http://consoto/pokedex.json");
|
var stream = await proxyClient.GetStreamAsync("http://contoso/pokedex.json");
|
||||||
// Proxy the response as JSON
|
// Proxy the response as JSON
|
||||||
return Results.Stream(stream, "application/json");
|
return Results.Stream(stream, "application/json");
|
||||||
});
|
});
|
||||||
|
|
|
@ -643,7 +643,7 @@ var app = builder.Build();
|
||||||
var proxyClient = new HttpClient();
|
var proxyClient = new HttpClient();
|
||||||
app.MapGet("/pokemon", async () =>
|
app.MapGet("/pokemon", async () =>
|
||||||
{
|
{
|
||||||
var stream = await proxyClient.GetStreamAsync("http://consoto/pokedex.json");
|
var stream = await proxyClient.GetStreamAsync("http://contoso/pokedex.json");
|
||||||
// Proxy the response as JSON
|
// Proxy the response as JSON
|
||||||
return Results.Stream(stream, "application/json");
|
return Results.Stream(stream, "application/json");
|
||||||
});
|
});
|
||||||
|
|
|
@ -106,7 +106,7 @@ var httpClient = new HttpClient();
|
||||||
app.MapPost("/books/{bookId}", async (int bookId, HttpContext context) =>
|
app.MapPost("/books/{bookId}", async (int bookId, HttpContext context) =>
|
||||||
{
|
{
|
||||||
var stream = await httpClient.GetStreamAsync(
|
var stream = await httpClient.GetStreamAsync(
|
||||||
$"http://consoto/books/{bookId}.json", context.RequestAborted);
|
$"http://contoso/books/{bookId}.json", context.RequestAborted);
|
||||||
|
|
||||||
// Proxy the response as JSON
|
// Proxy the response as JSON
|
||||||
return Results.Stream(stream, "application/json");
|
return Results.Stream(stream, "application/json");
|
||||||
|
|
Loading…
Reference in New Issue