You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Radarr/NzbDrone.Api/NzbDroneApiModule.cs

15 lines
348 B

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