jellyfin-server/MediaBrowser.Api/HttpHandlers/UsersHandler.cs

17 lines
478 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.Threading.Tasks;
using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Controller;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Api.HttpHandlers
{
class UsersHandler : BaseJsonHandler<IEnumerable<User>>
{
protected override Task<IEnumerable<User>> GetObjectToSerialize()
{
2012-08-22 02:50:59 +00:00
return Task.FromResult<IEnumerable<User>>(Kernel.Instance.Users);
}
}
}