library/frontend/frontend.go
David Ashby c26ece0c86
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
initial sketch of how this will work
2023-12-30 20:27:24 -05:00

18 lines
218 B
Go

package frontend
import (
"embed"
"io/fs"
)
//go:embed files
var static embed.FS
func Root() (fs.FS, error) {
return fs.Sub(static, "files")
}
func AdminRoot() (fs.FS, error) {
return fs.Sub(static, "admin")
}