Skip to content

Commit

Permalink
Add support for SVG and SVGZ files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Jul 11, 2023
1 parent 998bbb1 commit 88b6e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TRENZ.Docs.API/Controllers/FileController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task<IActionResult> Get(string location)
var normalizedLocation = Uri.UnescapeDataString(location).TrimStart(NavNode.Separator);
var file = _sourcesProvider
.GetSources()
.SelectMany(source => source.FindFiles(new(".*\\.(png|jpe?g|gif|json)$")))
.SelectMany(source => source.FindFiles(new(".*\\.(png|jpe?g|gif|json|svgz?)$")))
.FirstOrDefault(sf => sf.RelativePath == Path.GetRelativePath(".", normalizedLocation));

if (file == null)
Expand Down

0 comments on commit 88b6e72

Please sign in to comment.