sonarr-repo-only/NzbDrone.Api/NzbDroneApiModule.cs

18 lines
328 B
C#

using System.Linq;
using Nancy;
using Nancy.Responses;
namespace NzbDrone.Api
{
public abstract class NzbDroneApiModule : NancyModule
{
protected NzbDroneApiModule(string resource)
: base("/api/" + resource.Trim('/'))
{
Options["/"] = x => new Response();
}
}
}