Lidarr/NzbDrone.Api/NzbDroneApiModule.cs

14 lines
305 B
C#

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