Add content system

This commit is contained in:
Jonathan Bourdon
2024-07-02 00:23:14 -04:00
parent 82699dae41
commit bc2dc969ff
11 changed files with 290 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ using Hutopy.Application;
using Hutopy.Infrastructure;
using Hutopy.Infrastructure.Data;
using Hutopy.Web;
using Hutopy.Web.Contents.Data;
using Hutopy.Web.Messages.Data;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.EntityFrameworkCore;
@@ -83,6 +84,11 @@ builder.Services.AddDbContext<MessagingDbContext>((_, options) =>
options.UseSqlServer(builder.Configuration.GetConnectionString("CommentStore"));
});
builder.Services.AddDbContext<ContentDbContext>((_, options) =>
{
options.UseSqlServer(builder.Configuration.GetConnectionString("ContentStore"));
});
var app = builder.Build();
app.UseForwardedHeaders(