mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-05 02:41:41 +00:00
refactor: rename script to
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
//go:embed assets
|
||||
var embeddedFiles embed.FS
|
||||
|
||||
// UseAssets is a middleware that serves static files from the embedded assets
|
||||
func UseAssets(e *echo.Echo) echo.HandlerFunc {
|
||||
embFs := http.FS(os.DirFS("assets"))
|
||||
assets := http.FileServer(embFs)
|
||||
|
||||
Reference in New Issue
Block a user