library/frontend/frontend.go

21 lines
254 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
2024-01-02 01:10:58 +00:00
//go:embed admin
var admin embed.FS
2021-07-02 22:13:58 +00:00
func Root() (fs.FS, error) {
return fs.Sub(static, "files")
}
2023-12-31 01:27:24 +00:00
func AdminRoot() (fs.FS, error) {
2024-01-02 01:10:58 +00:00
return fs.Sub(admin, "admin")
2023-12-31 01:27:24 +00:00
}