Directory Browsing
The directory listing provider serves a simple web UI allowing users to browse directories and files read from a resource tree below the specified path.
var tree = ResourceTree.FromDirectory("/var/www/documents/");
await Host.Create()
.Handler(DirectoryListing.From(tree))
.RunAsync();
In this example, the listing view will be available at http://localhost:8080/.