18 lines
437 B
C#
18 lines
437 B
C#
using Microsoft.AspNet.Builder;
|
|
using Microsoft.AspNet.FileSystems;
|
|
using Microsoft.AspNet.StaticFiles;
|
|
|
|
namespace StaticFilesSample
|
|
{
|
|
public class Startup
|
|
{
|
|
public void Configuration(IBuilder app)
|
|
{
|
|
app.UseFileServer(new FileServerOptions()
|
|
{
|
|
EnableDirectoryBrowsing = true,
|
|
FileSystem = new PhysicalFileSystem(@"c:\temp")
|
|
});
|
|
}
|
|
}
|
|
} |