ProductList

This commit is contained in:
Michał Zieliński
2025-07-17 14:29:02 +02:00
parent 518eff0ec7
commit 2a42f16daf
17 changed files with 397 additions and 38 deletions

View File

@@ -0,0 +1,17 @@
using Bimix.UI.Shared.Services;
using Microsoft.Extensions.DependencyInjection;
namespace Bimix.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;
}
}