initial commit
This commit is contained in:
14
ui/embed.go
Normal file
14
ui/embed.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Package ui handles the frontend embedding
|
||||
package ui
|
||||
|
||||
import (
|
||||
"embed"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
//go:embed all:.output/public
|
||||
var distDir embed.FS
|
||||
|
||||
// DistDirFS contains the embedded dist directory files (without the "dist" prefix)
|
||||
var DistDirFS = echo.MustSubFS(distDir, ".output/public")
|
||||
Reference in New Issue
Block a user