fixed series module

pull/2/head
kay.one 12 years ago
parent fa2b2df7d5
commit c0798b8eb3

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

Loading…
Cancel
Save