Files
deepdrft/DeepDrftWeb.Client/Startup.cs
T
daniel f0d60190cc Track Gallery front end
- For now uses a table but will replace with graphical media cards
2025-09-01 16:50:08 -04:00

20 lines
645 B
C#

using DeepDrftWeb.Client.Clients;
using DeepDrftWeb.Client.ViewModels;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using NetBlocks.Models;
namespace DeepDrftWeb.Client;
public static class Startup
{
public static void ConfigureDomainServices(IServiceCollection services, string baseAddress)
{
// HTTP Client for Server API
services.AddScoped(_ => new HttpClient { BaseAddress = new Uri(baseAddress) });
// Track Client
services.AddSingleton(new ClientConfig(baseAddress));
services.AddScoped<TrackClient>();
services.AddScoped<TrackGalleryViewModel>();
}
}