fixed series module

This commit is contained in:
kay.one 2013-04-20 10:07:15 -07:00
parent fa2b2df7d5
commit c0798b8eb3
1 changed files with 2 additions and 6 deletions

View File

@ -6,24 +6,20 @@ using AutoMapper;
using FluentValidation;
using Nancy;
using NzbDrone.Api.Extensions;
using NzbDrone.Api.REST;
using NzbDrone.Common;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Jobs;
using NzbDrone.Core.Model;
namespace NzbDrone.Api.Series
{
public class SeriesModule : RestModule<SeriesResource>
public class SeriesModule : NzbDroneApiModule//: RestModule<SeriesResource>
{
private readonly ISeriesService _seriesService;
private readonly IJobController _jobProvider;
public SeriesModule(ISeriesService seriesService, IJobController jobProvider)
public SeriesModule(ISeriesService seriesService)
: base("/Series")
{
_seriesService = seriesService;
_jobProvider = jobProvider;
Get["/"] = x => AllSeries();
Get["/{id}"] = x => GetSeries((int)x.id);
Post["/"] = x => AddSeries();