do not resolve media paths with route resolver
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user