library/frontend/frontend.go
David Ashby c2ac67aa07
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
start building frontend
2024-01-01 20:10:58 -05:00

21 lines
254 B
Go

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