Ready to test pulling random assets

This commit is contained in:
2024-11-23 11:53:11 -07:00
parent 2391462500
commit c8325aafca
16 changed files with 270 additions and 232 deletions

View File

@ -1,3 +1,4 @@
using ImmichToSlideshow.Models;
using ImmichToSlideshow.Services;
namespace ImmichToSlideshow.DependencyInjection;
@ -5,9 +6,10 @@ namespace ImmichToSlideshow.DependencyInjection;
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddServices(this IServiceCollection services)
public static IServiceCollection AddServices(this IServiceCollection services, AppSettings appSettings)
{
_ = services.AddScoped<AssetService>();
_ = services.AddSingleton(_ => appSettings);
return services;
}