diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-24 22:56:00 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-24 22:56:00 -0500 |
| commit | add43baffef74fcd34cfc6ef02d36777be05b274 (patch) | |
| tree | d099801de1b457e3193f5b29b68337ff50649cd8 /MediaBrowser.Api/ApiService.cs | |
| parent | 2d342c02ef55e2ba8796d95888274356aaadbe5c (diff) | |
convert media library url's to rest
Diffstat (limited to 'MediaBrowser.Api/ApiService.cs')
| -rw-r--r-- | MediaBrowser.Api/ApiService.cs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/MediaBrowser.Api/ApiService.cs b/MediaBrowser.Api/ApiService.cs index 68ba6d522..e6e4594c1 100644 --- a/MediaBrowser.Api/ApiService.cs +++ b/MediaBrowser.Api/ApiService.cs @@ -1,10 +1,7 @@ using MediaBrowser.Controller; using MediaBrowser.Controller.Entities; -using MediaBrowser.Model.Connectivity; -using ServiceStack.Common.Web; using System; using System.Net; -using System.Threading.Tasks; namespace MediaBrowser.Api { @@ -43,36 +40,5 @@ namespace MediaBrowser.Api return request.Url.LocalPath.EndsWith(url, StringComparison.OrdinalIgnoreCase); } - - ///// <summary> - ///// Gets the current user. - ///// </summary> - ///// <param name="request">The request.</param> - ///// <returns>Task{User}.</returns> - //public static async Task<User> GetCurrentUser(AuthenticatedRequest request) - //{ - // var user = GetUserById(request.UserId); - - // if (user == null) - // { - // throw HttpError.Unauthorized("Invalid user or password entered."); - // } - - // var clientType = ClientType.Other; - - // if (!string.IsNullOrEmpty(request.Client)) - // { - // ClientType type; - - // if (Enum.TryParse(request.Client, true, out type)) - // { - // clientType = type; - // } - // } - - // await Kernel.Instance.UserManager.LogUserActivity(user, clientType, request.Device).ConfigureAwait(false); - - // return user; - //} } } |
