Commit 0baa9691 authored by liudong1993's avatar liudong1993

静态文件配置

parent 3ee1121d
......@@ -129,12 +129,12 @@ namespace Mall.WebApi
{
Timers.TimerJobj.RunStop(); //网站停止完成执行
});
//app.UseStaticFiles(new StaticFileOptions
//{
// FileProvider = new Microsoft.Extensions.FileProviders.PhysicalFileProvider(
// Path.Combine(Directory.GetCurrentDirectory(), "upfile")),
// RequestPath = "/upfile"
//});
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new Microsoft.Extensions.FileProviders.PhysicalFileProvider(
Path.Combine(Directory.GetCurrentDirectory(), "upfile")),
RequestPath = "/upfile"
});
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment