Ready to test pulling random assets
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user