add filesystem for webroot
This commit is contained in:
@@ -15,5 +15,11 @@ internal class ZeroFileStorageModule : ZeroModule
|
||||
{
|
||||
opts.ZeroAssetsPath = "zero";
|
||||
});
|
||||
|
||||
services.AddSingleton<IWebRootFileSystem, WebRootFileSystem>(svc =>
|
||||
{
|
||||
IWebHostEnvironment env = svc.GetRequiredService<IWebHostEnvironment>();
|
||||
return new(env.WebRootPath, null);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user