do not resolve media paths with route resolver

This commit is contained in:
2022-01-17 22:25:19 +01:00
parent fc4f057265
commit 970299f036
4 changed files with 29 additions and 12 deletions
+14 -1
View File
@@ -20,7 +20,20 @@ public class MediaFileSystem : PhysicalFileSystem, IMediaFileSystem
}
return PublicPathPrefix + path.TrimStart('/');
}
/// <inheritdoc />
public bool IsMediaPath(string path)
{
return path.StartsWith(PublicPathPrefix, StringComparison.InvariantCultureIgnoreCase);
}
}
public interface IMediaFileSystem : IFileSystem { }
public interface IMediaFileSystem : IFileSystem
{
/// <summary>
/// Determine whether the given path is part of the media file system
/// </summary>
bool IsMediaPath(string path);
}