server/qa/assets.go

29 lines
377 B
Go
Raw Normal View History

2021-12-10 01:12:41 +00:00
//go:build !dev
// +build !dev
package main
import (
"embed"
"io/fs"
"log"
"net/http"
)
2022-11-06 14:14:35 +00:00
//go:embed all:ui/build
2021-12-10 01:12:41 +00:00
var _assets embed.FS
var Assets http.FileSystem
func init() {
sub, err := fs.Sub(_assets, "ui/build")
if err != nil {
log.Fatal("Unable to cd to ui/build directory:", err)
}
Assets = http.FS(sub)
}
func sanitizeStaticOptions() error {
return nil
}