mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 00:35:26 +03:00
Moved the http server to it's own assembly. added comments and made other minor re-organizations.
This commit is contained in:
parent
6fbd5cf464
commit
80b3ad7bd2
@@ -1,17 +1,12 @@
|
||||
using System;
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Common.Net.Handlers;
|
||||
using MediaBrowser.Net.Handlers;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
public class StudiosHandler : JsonHandler
|
||||
{
|
||||
public StudiosHandler(RequestContext ctx)
|
||||
: base(ctx)
|
||||
{
|
||||
}
|
||||
|
||||
protected sealed override object ObjectToSerialize
|
||||
{
|
||||
get
|
||||
@@ -19,7 +14,7 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
Folder parent = ApiService.GetItemById(QueryString["id"]) as Folder;
|
||||
Guid userId = Guid.Parse(QueryString["userid"]);
|
||||
|
||||
return ApiService.GetAllStudios(parent, userId);
|
||||
return Kernel.Instance.GetAllStudios(parent, userId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user