blob: 7f5803019520078a7c9de222afd8fc0071ffb352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package adminui
import (
"embed"
"io/fs"
"net/http"
)
//go:embed assets/*
var assets embed.FS
func Handler() http.Handler {
content, err := fs.Sub(assets, "assets")
if err != nil {
panic(err)
}
return http.FileServer(http.FS(content))
}
|