1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-02 17:45:29 +00:00
Lidarr/NzbDrone.Api/Frontend/Mappers/IndexHtmlMapper.cs
Keivan Beigi 24ba4390a1 moved static resource to basic nancy module.
cache and gzip piplelines are missing
2013-08-19 19:31:26 -07:00

25 lines
No EOL
600 B
C#

using System.IO;
using NzbDrone.Common.EnvironmentInfo;
namespace NzbDrone.Api.Frontend.Mappers
{
public class IndexHtmlMapper : IMapHttpRequestsToDisk
{
private readonly string _indexPath;
public IndexHtmlMapper(IAppFolderInfo appFolderInfo)
{
_indexPath = Path.Combine(appFolderInfo.StartUpFolder, "UI", "index.html");
}
public string Map(string resourceUrl)
{
return _indexPath;
}
public bool CanHandle(string resourceUrl)
{
return !resourceUrl.Contains(".");
}
}
}