修改静态字符串 进行分类
This commit is contained in:
@@ -23,38 +23,8 @@ namespace IRaCIS.Core.API
|
||||
app.UseStaticFiles(new StaticFileOptions
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(iRaCISDataFolder),
|
||||
RequestPath = $"/{StaticData.IRaCISDataFolder}"
|
||||
RequestPath = $"/{StaticData.Folder.IRaCISDataFolder}"
|
||||
});
|
||||
|
||||
|
||||
|
||||
#region 后期废弃
|
||||
|
||||
|
||||
var uploadPath = Path.Combine(Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName, StaticData.UploadFileFolder);
|
||||
|
||||
|
||||
if (!Directory.Exists(uploadPath))
|
||||
{
|
||||
Directory.CreateDirectory(uploadPath);
|
||||
}
|
||||
|
||||
app.UseStaticFiles(new StaticFileOptions
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(uploadPath),
|
||||
RequestPath = $"/{StaticData.UploadFileFolder}"
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user