16 lines
205 B
Go
16 lines
205 B
Go
package controllerui
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"net/http"
|
|
)
|
|
|
|
//go:embed dist/*
|
|
var files embed.FS
|
|
|
|
func Handler() http.Handler {
|
|
sub, _ := fs.Sub(files, "dist")
|
|
return http.FileServer(http.FS(sub))
|
|
}
|