mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 19:43:16 +00:00
Admin api changes
This commit is contained in:
1 parent
05285114cd
commit
58d92080d5
28 files changed
+1276
-33
No files matched your search
@@ -0,0 +1,16 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Spacebar.CleanSettingsRows;
|
||||
using Spacebar.Db.Contexts;
|
||||
|
||||
var builder = Host.CreateApplicationBuilder(args);
|
||||
builder.Services.AddHostedService<Worker>();
|
||||
|
||||
builder.Services.AddDbContextPool<SpacebarDbContext>(options => {
|
||||
options
|
||||
.UseNpgsql(builder.Configuration.GetConnectionString("Spacebar"))
|
||||
.EnableDetailedErrors();
|
||||
});
|
||||
|
||||
|
||||
var host = builder.Build();
|
||||
host.Run();
|
||||
Reference in new issue
Block a user