mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
19 lines
288 B
Go
19 lines
288 B
Go
package nebula
|
|
|
|
import (
|
|
"embed"
|
|
"net/http"
|
|
"os"
|
|
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
//go:embed assets
|
|
var embeddedFiles embed.FS
|
|
|
|
func UseAssets(e *echo.Echo) echo.HandlerFunc {
|
|
embFs := http.FS(os.DirFS("assets"))
|
|
assets := http.FileServer(embFs)
|
|
return echo.WrapHandler(assets)
|
|
}
|