library/frontend/frontend.go

18 lines
218 B
Go
Raw Normal View History

2021-06-26 18:08:35 +00:00
package frontend
2021-07-02 22:13:58 +00:00
import (
"embed"
"io/fs"
)
2021-06-26 18:08:35 +00:00
//go:embed files
2021-07-02 22:13:58 +00:00
var static embed.FS
func Root() (fs.FS, error) {
return fs.Sub(static, "files")
}
2023-12-31 01:27:24 +00:00
func AdminRoot() (fs.FS, error) {
return fs.Sub(static, "admin")
}