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

13 lines
283 B
C#

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