Track Gallery front end
- For now uses a table but will replace with graphical media cards
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user