added option to disable auth endpoints

This commit is contained in:
2024-12-24 12:19:32 +01:00
parent 166134c6d8
commit e530cf735a
6 changed files with 8 additions and 27 deletions

View File

@@ -15,7 +15,6 @@ namespace HopFrame.Web;
public static class ServiceCollectionExtensions {
public static IServiceCollection AddHopFrame<TDbContext>(this IServiceCollection services, ConfigurationManager configuration, HopFrameWebModuleConfig config = null) where TDbContext : HopDbContextBase {
config ??= new HopFrameWebModuleConfig();
services.AddHttpClient();
services.AddHopFrameRepositories<TDbContext>();
services.AddScoped<IAuthService, AuthService>();
services.AddTransient<AuthMiddleware>();