|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using DryIoc;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
|
using Microsoft.AspNetCore.DataProtection;
|
|
|
|
@ -26,6 +27,7 @@ using NzbDrone.SignalR;
|
|
|
|
|
using Readarr.Api.V1.System;
|
|
|
|
|
using Readarr.Http;
|
|
|
|
|
using Readarr.Http.Authentication;
|
|
|
|
|
using Readarr.Http.ClientSchema;
|
|
|
|
|
using Readarr.Http.ErrorManagement;
|
|
|
|
|
using Readarr.Http.Frontend;
|
|
|
|
|
using Readarr.Http.Middleware;
|
|
|
|
@ -191,6 +193,7 @@ namespace NzbDrone.Host
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Configure(IApplicationBuilder app,
|
|
|
|
|
IContainer container,
|
|
|
|
|
IStartupContext startupContext,
|
|
|
|
|
Lazy<IMainDatabase> mainDatabaseFactory,
|
|
|
|
|
Lazy<ILogDatabase> logDatabaseFactory,
|
|
|
|
@ -223,6 +226,7 @@ namespace NzbDrone.Host
|
|
|
|
|
_ = cacheDatabaseFactory.Value;
|
|
|
|
|
|
|
|
|
|
dbTarget.Register();
|
|
|
|
|
SchemaBuilder.Initialize(container);
|
|
|
|
|
|
|
|
|
|
if (OsInfo.IsNotWindows)
|
|
|
|
|
{
|
|
|
|
|