19 lines
235 B
Go
19 lines
235 B
Go
package main
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"net/http"
|
|
)
|
|
|
|
//go:embed all:embed
|
|
//go:embed all:embed/_app
|
|
var Files embed.FS
|
|
|
|
func FrontendFileSystem() http.FileSystem {
|
|
return http.FS(Files)
|
|
}
|
|
|
|
func FrontendFS() fs.FS {
|
|
return Files
|
|
}
|