Posters/Banners/Fanart served from App_Data

This commit is contained in:
Mark McDowall 2013-05-16 20:03:52 -07:00
commit 16e13e0c24
7 changed files with 72 additions and 28 deletions

View file

@ -2,11 +2,6 @@ using System.IO;
namespace NzbDrone.Api.Frontend
{
public interface IMapHttpRequestsToDisk
{
string Map(string resourceUrl);
}
public class StaticResourceMapper : IMapHttpRequestsToDisk
{
public string Map(string resourceUrl)
@ -17,5 +12,7 @@ namespace NzbDrone.Api.Frontend
return Path.Combine("ui", path);
}
public RequestType IHandle { get { return RequestType.StaticResources; } }
}
}