Universal Dashboard is now a part of PowerShell Universal. This documentation is for reference to the v2 version of Universal Dashboard and is no longer maintained. PowerShell Universal Documentation can be found here.
You can publish a folder by specifying the path to the folder. The RequestPath is the path that the web server will server the files.
$Folder = Publish-UDFolder -Path C:\data\ -RequestPath "/config"​$Dashboard = New-UDDashboard -Title "Published Folders" -Content {}​Start-UDDashboard -Dashboard $Dashboard -Port 9999 -PublishedFolder $Folder
You can download a file by invoking the request path.
C:\> Invoke-WebRequest -Uri http://localhost:9999/config/hi.txt​​StatusCode : 200StatusDescription : OKContent : HelloRawContent : HTTP/1.1 200 OKAccept-Ranges: bytesContent-Length: 5Content-Type: text/plainDate: Sat, 03 Nov 2018 03:15:34 GMTETag: "1d473237a178b85"Last-Modified: Sat, 03 Nov 2018 03:15:31 GMTServer: ...