IPaths updates

This commit is contained in:
2021-08-11 15:47:42 +02:00
parent f8ec7320d2
commit e2c98e5144
4 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ namespace zero.Web.Controllers
return File(content, contentType, DateTimeOffset.Now, EntityTagHeaderValue.Any);
}
string fullPath = Path.Combine(Paths.Root, path?.Trim('/') ?? String.Empty);
string fullPath = Path.Combine(Paths.WebRoot, path?.Trim('/') ?? String.Empty);
if (path == null || !System.IO.File.Exists(fullPath))
{