mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Upgraded nuget packages, Ninject 3, SignalR 5
This commit is contained in:
parent
8f0d22e47d
commit
64468cd9ed
489 changed files with 293885 additions and 30058 deletions
34
NzbDrone.Api/AppHost.cs
Normal file
34
NzbDrone.Api/AppHost.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Web;
|
||||
using Funq;
|
||||
using Ninject;
|
||||
using NzbDrone.Api.QualityProfiles;
|
||||
using ServiceStack.ContainerAdapter.Ninject;
|
||||
using ServiceStack.WebHost.Endpoints;
|
||||
|
||||
namespace NzbDrone.Api
|
||||
{
|
||||
public class AppHost : AppHostBase
|
||||
{
|
||||
private IKernel _kernel;
|
||||
|
||||
public AppHost(IKernel kernel) //Tell ServiceStack the name and where to find your web services
|
||||
: base("NzbDrone API", typeof(QualityProfileService).Assembly)
|
||||
{
|
||||
_kernel = kernel;
|
||||
}
|
||||
|
||||
public override void Configure(Container container)
|
||||
{
|
||||
container.Adapter = new NinjectContainerAdapter(_kernel);
|
||||
SetConfig(new EndpointHostConfig { ServiceStackHandlerFactoryPath = "api" });
|
||||
|
||||
Routes
|
||||
.Add<QualityProfileRequest>("{ApiKey}/qualityprofiles")
|
||||
.Add<QualityProfileRequest>("{ApiKey}/qualityprofiles/{Id}");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue