diff options
Diffstat (limited to 'MediaBrowser.Api/Plugin.cs')
| -rw-r--r-- | MediaBrowser.Api/Plugin.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Plugin.cs b/MediaBrowser.Api/Plugin.cs index 659763c5f..7f764d6fb 100644 --- a/MediaBrowser.Api/Plugin.cs +++ b/MediaBrowser.Api/Plugin.cs @@ -85,6 +85,22 @@ namespace MediaBrowser.Api {
return new VideoHandler();
}
+ else if (localPath.EndsWith("/api/person", StringComparison.OrdinalIgnoreCase))
+ {
+ return new PersonHandler();
+ }
+ else if (localPath.EndsWith("/api/genre", StringComparison.OrdinalIgnoreCase))
+ {
+ return new GenreHandler();
+ }
+ else if (localPath.EndsWith("/api/year", StringComparison.OrdinalIgnoreCase))
+ {
+ return new YearHandler();
+ }
+ else if (localPath.EndsWith("/api/studio", StringComparison.OrdinalIgnoreCase))
+ {
+ return new StudioHandler();
+ }
return null;
}
|
