17 lines
454 B
C#
17 lines
454 B
C#
using BimAI.UI.Shared.Services;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace BimAI.UI.Shared.Extensions;
|
|
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddSharedServices(this IServiceCollection services, string apiBaseUrl)
|
|
{
|
|
services.AddHttpClient<ProductService>(client =>
|
|
{
|
|
client.BaseAddress = new Uri(apiBaseUrl);
|
|
});
|
|
return services;
|
|
}
|
|
|
|
} |