1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-31 16:02:29 +01:00
Sonarr/NzbDrone.Api/NzbDroneApiModule.cs
2013-05-21 17:58:57 -07:00

15 lines
348 B
C#

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();
}
}
}