Files
kopia/internal/server/htmlui_fallback.go
2021-12-21 20:19:27 -08:00

18 lines
264 B
Go

//go:build nohtmlui
// +build nohtmlui
package server
import (
"embed"
"net/http"
)
//go:embed index.html
var data embed.FS
// AssetFile return a http.FileSystem instance that data backend by asset.
func AssetFile() http.FileSystem {
return http.FS(data)
}