mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-17 01:17:37 +00:00
20 lines
343 B
Go
20 lines
343 B
Go
package views
|
|
|
|
import (
|
|
"embed"
|
|
"net/http"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
"github.com/gofiber/fiber/v2/middleware/filesystem"
|
|
)
|
|
|
|
//go:embed assets/*
|
|
var embedStatic embed.FS
|
|
|
|
func EmbedAssets() fiber.Handler {
|
|
return filesystem.New(filesystem.Config{
|
|
Root: http.FS(embedStatic),
|
|
PathPrefix: "assets",
|
|
Browse: false,
|
|
})
|
|
}
|