use httpclient in pipeline
This commit is contained in:
parent
2944f036ca
commit
2d7a7c1f61
@ -5,6 +5,7 @@ var builder = WebApplication.CreateBuilder(args);
|
|||||||
// Add services to the container.
|
// Add services to the container.
|
||||||
builder.Services.AddControllersWithViews();
|
builder.Services.AddControllersWithViews();
|
||||||
builder.Services.AddTransient<BusRouteService>();
|
builder.Services.AddTransient<BusRouteService>();
|
||||||
|
builder.Services.AddHttpClient();
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user