mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 13:57:54 +00:00
Add system and member privacy support
This commit is contained in:
parent
f0cc5c5961
commit
98613c4287
17 changed files with 317 additions and 59 deletions
|
|
@ -26,6 +26,7 @@ namespace PluralKit.API
|
|||
|
||||
services
|
||||
.AddTransient<IDataStore, PostgresDataStore>()
|
||||
.AddSingleton<SchemaService>()
|
||||
|
||||
.AddSingleton(svc => InitUtils.InitMetrics(svc.GetRequiredService<CoreConfig>(), "API"))
|
||||
|
||||
|
|
@ -41,6 +42,8 @@ namespace PluralKit.API
|
|||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
SchemaService.Initialize();
|
||||
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue