fixed series module

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

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

Loading…
Cancel
Save