2013-01-20 00:19:27 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using Nancy;
|
2013-01-20 01:37:48 +00:00
|
|
|
|
using Nancy.Responses;
|
2013-01-20 00:19:27 +00:00
|
|
|
|
|
2013-01-20 01:37:48 +00:00
|
|
|
|
namespace NzbDrone.Api
|
2013-01-20 00:19:27 +00:00
|
|
|
|
{
|
|
|
|
|
public abstract class NzbDroneApiModule : NancyModule
|
|
|
|
|
{
|
|
|
|
|
protected NzbDroneApiModule(string resource)
|
2013-01-20 01:37:48 +00:00
|
|
|
|
: base("/api/" + resource.Trim('/'))
|
2013-01-20 00:19:27 +00:00
|
|
|
|
{
|
2013-01-20 01:37:48 +00:00
|
|
|
|
Options["/"] = x => new Response();
|
2013-01-20 00:19:27 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|