using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using zero.Backoffice.Modules.Countries; using zero.Backoffice.Modules.Pages; using zero.Backoffice.Modules.Search; namespace zero.Backoffice.Modules; public static class ServiceCollectionExtensions { public static IServiceCollection AddZeroBackofficeModules(this IServiceCollection services, IConfiguration config) { services.AddScoped(); services.AddScoped(); services.AddScoped, CountryPickerProvider>(); services.AddSingleton(); services.Configure(opts => { opts.Indexes.Add(); opts.Indexes.Add(); }); return services; } }