Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created August 12, 2015 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/99fde3dfe60b4fb667d8 to your computer and use it in GitHub Desktop.
Save dcomartin/99fde3dfe60b4fb667d8 to your computer and use it in GitHub Desktop.
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