Updates Module pattern.

This commit is contained in:
2025-01-14 01:07:34 -05:00
parent 94348de291
commit 6c684f9272

View File

@@ -1,4 +1,3 @@
using Azure.Identity;
using Hutopy.Web;
using Hutopy.Web.Features.Contents;
using Hutopy.Web.Features.Contents.Data;
@@ -81,15 +80,15 @@ var postgresConnectionString = builder.Configuration.GetConnectionString("Postgr
?? throw new InvalidOperationException("Missing ConnectionStrings:PostgresConnection");
builder.Services.AddFastEndpoints();
builder.Services.AddUsersModule(options =>
builder.AddIdentityModule(options =>
options.UseNpgsql(
postgresConnectionString,
o => o.MigrationsHistoryTable("__EFMigrationsHistory", IdentityDbContext.SchemaName)));
builder.Services.AddContentModule(options =>
builder.AddContentModule(options =>
options.UseNpgsql(
postgresConnectionString,
o => o.MigrationsHistoryTable("__EFMigrationsHistory", ContentDbContext.SchemaName)));
builder.Services.AddMessagingModule(options =>
builder.AddMessagingModule(options =>
options.UseNpgsql(
postgresConnectionString,
o => o.MigrationsHistoryTable("__EFMigrationsHistory", MessagingDbContext.SchemaName)));