Files
threshold/plugins/host/assets.go
T
Todd 6eba8a4787 Lookups Catalogs and Persisted data together (#1643)
* Fixed a number of TODOs:
1. Create a catalog/persisted data view.
2. Pass all sets to the plugin when deleting a catalog.
2021-10-28 12:46:42 -07:00

22 lines
302 B
Go

package host_plugin_assets
import (
"embed"
"io/fs"
)
const contentDir = "assets"
// content is our static web server content.
//go:embed assets
var content embed.FS
func FileSystem() fs.FS {
// Remove the root
f, err := fs.Sub(content, contentDir)
if err != nil {
panic(err)
}
return f
}