mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-10-30 00:47:46 +00:00
21 lines
289 B
Go
21 lines
289 B
Go
package frontend
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"log"
|
|
"net/http"
|
|
)
|
|
|
|
//go:generate npm ci
|
|
//go:generate npm run build
|
|
//go:embed build/*
|
|
var f embed.FS
|
|
|
|
func SvelteKitHandler() http.FileSystem {
|
|
build, err := fs.Sub(f, "build")
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
return http.FS(build)
|
|
}
|