Files
kopia/internal/server/htmlui_fallback.go
2021-09-14 19:11:39 -07:00

18 lines
268 B
Go

//go:build !embedhtml
// +build !embedhtml
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)
}