diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 14:14:09 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 14:14:09 -0500 |
| commit | c4c9126f79f43ad865cfa670bda90a94ffb39d9c (patch) | |
| tree | 765ae58da0ca4c56d14c49072704860a1c0374d8 /MediaBrowser.Api/ApiService.cs | |
| parent | bbba73bc6f297cb134c82a96d1899522e7c1e6aa (diff) | |
added more attributes for api docs
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); - } - } -} |
