From fe591816bbe1c2ee4a433f6acfb8618ff6a9cc12 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 8 Sep 2019 22:00:15 -0400 Subject: [PATCH] Fixed: Remove TitleSlugRoute --- src/NzbDrone.Api/Movies/MovieModule.cs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/NzbDrone.Api/Movies/MovieModule.cs b/src/NzbDrone.Api/Movies/MovieModule.cs index 6915204a8..4c3655508 100644 --- a/src/NzbDrone.Api/Movies/MovieModule.cs +++ b/src/NzbDrone.Api/Movies/MovieModule.cs @@ -54,7 +54,6 @@ namespace NzbDrone.Api.Movies GetResourceAll = AllMovie; GetResourceById = GetMovie; - Get(TITLE_SLUG_ROUTE, GetByTitleSlug); CreateResource = AddMovie; UpdateResource = UpdateMovie; @@ -106,29 +105,6 @@ namespace NzbDrone.Api.Movies return moviesResources; } - private object GetByTitleSlug(dynamic options) - { - string slug; - try - { - slug = options.slug; - // do stuff with x - } - catch (RuntimeBinderException) - { - return new NotFoundResponse(); - } - - try - { - return ResponseWithCode(MapToResource(_moviesService.FindByTitleSlug(slug)), HttpStatusCode.OK); - } - catch (ModelNotFoundException) - { - return new NotFoundResponse(); - } - } - private int AddMovie(MovieResource moviesResource) { var model = moviesResource.ToModel();