mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 09:01:10 +00:00
Updates code to account for MacOS as a UNIX platform
This commit is contained in:
1 parent
d32f124147
commit
01decb27d5
4 files changed
+6
-8
No files matched your search
@@ -35,7 +35,7 @@ public class FileSystemBrowserViewComponent : ViewComponent
|
||||
{
|
||||
return View(new
|
||||
{
|
||||
Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? @"/" : @"C:\Users\",
|
||||
Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? @"/" : @"C:\Users\",
|
||||
ServerBasePath = $"{_serverConfigurationModel.BaseAddress}:{_serverConfigurationModel.Port}/api/v{_serverConfigurationModel.ApiVersion}/",
|
||||
ClientBasePath = "http://localhost:5012/", // TODO: take from appsettings or environment
|
||||
ViewMode = FileSystemViewMode.List,
|
||||
|
||||
Reference in new issue
Block a user