Last active
August 29, 2015 14:27
-
-
Save dcomartin/f55557c4a72d8fb7a35f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = new FileServerOptions | |
{ | |
EnableDirectoryBrowsing = true, | |
EnableDefaultFiles = true, | |
DefaultFilesOptions = { DefaultFileNames = {"index.html"}}, | |
FileSystem = new PhysicalFileSystem("Assets"), | |
StaticFileOptions = { ContentTypeProvider = new CustomContentTypeProvider() } | |
}; | |
app.UseFileServer(options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment