WIP: frontend refactor

This commit is contained in:
Michał Zieliński
2025-11-06 10:20:00 +01:00
parent 5bee3912f1
commit 7f04cab0d9
38 changed files with 1254 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using Microsoft.Extensions.DependencyInjection;
using DiunaBI.UI.Shared.Services;
namespace DiunaBI.UI.Shared.Extensions;
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddSharedServices(this IServiceCollection services, string apiBaseUrl)
{
// HttpClient for API calls
services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(apiBaseUrl) });
// Services
services.AddScoped<AuthService>();
services.AddScoped<LayerService>();
return services;
}
}