use httpclient in pipeline

This commit is contained in:
Ryan Peters 2022-09-16 18:55:28 -04:00
parent 2944f036ca
commit 2d7a7c1f61

View File

@ -5,6 +5,7 @@ var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllersWithViews();
builder.Services.AddTransient<BusRouteService>();
builder.Services.AddHttpClient();
var app = builder.Build();