mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-07 12:58:27 +00:00
admin api packaging
This commit is contained in:
1 parent
a4527d166a
commit
4534d4dbf5
124 files changed
+2250
-268
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using ConfigTest;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Spacebar.Db.Contexts;
|
||||
|
||||
var builder = Host.CreateApplicationBuilder(args);
|
||||
builder.Services.AddHostedService<Worker>();
|
||||
builder.Services.AddDbContext<SpacebarDbContext>(options => {
|
||||
options
|
||||
.UseNpgsql(builder.Configuration.GetConnectionString("Spacebar"))
|
||||
.EnableDetailedErrors();
|
||||
}, ServiceLifetime.Singleton);
|
||||
|
||||
var host = builder.Build();
|
||||
host.Run();
|
||||
Reference in new issue
Block a user