mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 00:35:26 +03:00
Added an api call to pull down user configuration
This commit is contained in:
parent
0a48b5e31a
commit
6c7175e33d
18
MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs
Normal file
18
MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using MediaBrowser.Controller;
|
||||
|
||||
namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
public class UserConfigurationHandler : JsonHandler
|
||||
{
|
||||
protected override object ObjectToSerialize
|
||||
{
|
||||
get
|
||||
{
|
||||
Guid userId = Guid.Parse(QueryString["userid"]);
|
||||
|
||||
return Kernel.Instance.ConfigurationController.GetUserConfiguration(userId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user