=> CommonMark.NET + Fixes code + refact
This commit is contained in:
parent
fa8e032d21
commit
6e42b01a47
8 changed files with 18 additions and 19 deletions
|
|
@ -31,7 +31,7 @@ namespace Yavsc
|
|||
UserFilesOptions = new FileServerOptions()
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(AbstractFileSystemHelpers.UserFilesDirName),
|
||||
RequestPath = new PathString(Constants.UserFilesPath),
|
||||
RequestPath = PathString.FromUriComponent(Constants.UserFilesPath),
|
||||
EnableDirectoryBrowsing = env.IsDevelopment(),
|
||||
};
|
||||
UserFilesOptions.EnableDefaultFiles=true;
|
||||
|
|
@ -56,7 +56,7 @@ namespace Yavsc
|
|||
AvatarsOptions = new FileServerOptions()
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(AvatarsDirName),
|
||||
RequestPath = new PathString(Constants.AvatarsPath),
|
||||
RequestPath = PathString.FromUriComponent(Constants.AvatarsPath),
|
||||
EnableDirectoryBrowsing = env.IsDevelopment()
|
||||
};
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ namespace Yavsc
|
|||
GitOptions = new FileServerOptions()
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(GitDirName),
|
||||
RequestPath = new PathString(Constants.GitPath),
|
||||
RequestPath = PathString.FromUriComponent(Constants.GitPath),
|
||||
EnableDirectoryBrowsing = env.IsDevelopment(),
|
||||
};
|
||||
GitOptions.DefaultFilesOptions.DefaultFileNames.Add("index.md");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue