Updates Module pattern.
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user