This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2021-10-01 15:52:44 +00:00
|
|
|
//go:build !dev
|
|
|
|
// +build !dev
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"embed"
|
|
|
|
"io/fs"
|
|
|
|
"log"
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
2022-12-12 09:24:30 +00:00
|
|
|
//go:embed all:ui/build
|
2021-10-01 15:52:44 +00:00
|
|
|
var _assets embed.FS
|
|
|
|
|
|
|
|
var Assets http.FileSystem
|
|
|
|
|
|
|
|
func init() {
|
2022-03-01 12:46:44 +00:00
|
|
|
sub, err := fs.Sub(_assets, "ui/build")
|
2021-10-01 15:52:44 +00:00
|
|
|
if err != nil {
|
2022-03-01 12:46:44 +00:00
|
|
|
log.Fatal("Unable to cd to ui/build/ directory:", err)
|
2021-10-01 15:52:44 +00:00
|
|
|
}
|
|
|
|
Assets = http.FS(sub)
|
|
|
|
}
|
|
|
|
|
|
|
|
func sanitizeStaticOptions() error {
|
|
|
|
return nil
|
|
|
|
}
|