mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 02:37:40 +00:00
15 lines
No EOL
348 B
C#
15 lines
No EOL
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();
|
|
}
|
|
}
|
|
} |