Skip to content

Instantly share code, notes, and snippets.

@dcomartin

dcomartin/owinFileServer.cs Secret

Created Aug 12, 2015
Embed
What would you like to do?
OwinFileServer
var options = new FileServerOptions
{
EnableDirectoryBrowsing = true,
EnableDefaultFiles = true,
DefaultFilesOptions = { DefaultFileNames = {"index.html"}},
FileSystem = new PhysicalFileSystem("Assets")
};
app.UseFileServer(options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment