diff options
Diffstat (limited to 'MediaBrowser.Api/ApiService.cs')
| -rw-r--r-- | MediaBrowser.Api/ApiService.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/MediaBrowser.Api/ApiService.cs b/MediaBrowser.Api/ApiService.cs deleted file mode 100644 index 33ea492e0..000000000 --- a/MediaBrowser.Api/ApiService.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Net; - -namespace MediaBrowser.Api -{ - /// <summary> - /// Contains some helpers for the api - /// </summary> - public static class ApiService - { - /// <summary> - /// Determines whether [is API URL match] [the specified URL]. - /// </summary> - /// <param name="url">The URL.</param> - /// <param name="request">The request.</param> - /// <returns><c>true</c> if [is API URL match] [the specified URL]; otherwise, <c>false</c>.</returns> - public static bool IsApiUrlMatch(string url, HttpListenerRequest request) - { - url = "/api/" + url; - - return request.Url.LocalPath.EndsWith(url, StringComparison.OrdinalIgnoreCase); - } - } -} |
