Initial sanitized code sync
This commit is contained in:
13
web/embed.go
Normal file
13
web/embed.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
//go:embed all:frontend/dist
|
||||
var frontendFS embed.FS
|
||||
|
||||
func FrontendFS() (fs.FS, error) {
|
||||
return fs.Sub(frontendFS, "frontend/dist")
|
||||
}
|
||||
Reference in New Issue
Block a user