From 93b42641d23cf675b74d4bdaf6d6ece07fbb8900 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sat, 8 Sep 2012 10:52:13 -0400 Subject: Switched to MEF to register http handlers --- MediaBrowser.Api/ApiService.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'MediaBrowser.Api/ApiService.cs') diff --git a/MediaBrowser.Api/ApiService.cs b/MediaBrowser.Api/ApiService.cs index ab12a350f..6b3c00ee2 100644 --- a/MediaBrowser.Api/ApiService.cs +++ b/MediaBrowser.Api/ApiService.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using System.Net; namespace MediaBrowser.Api { @@ -374,5 +375,10 @@ namespace MediaBrowser.Api LastLoginDate = user.LastLoginDate }; } + + public static bool IsApiUrlMatch(string url, HttpListenerRequest request) + { + return request.Url.LocalPath.EndsWith(url, StringComparison.OrdinalIgnoreCase); + } } } -- cgit v1.2.3