Change to only need the one json file and changed AppSettings to not need a binder file Editorconfig for no new line before open braces Nuget package bumps Database lowest-version-history
14 lines
412 B
C#
14 lines
412 B
C#
using ImmichToSlideshow.Models;
|
|
using ImmichToSlideshow.Services;
|
|
|
|
namespace ImmichToSlideshow.DependencyInjection;
|
|
|
|
public static class ServiceCollectionExtensions {
|
|
|
|
public static IServiceCollection AddServices(this IServiceCollection services, AppSettings appSettings) {
|
|
_ = services.AddScoped<AssetService>();
|
|
_ = services.AddSingleton(_ => appSettings);
|
|
return services;
|
|
}
|
|
|
|
} |