From f326aa6363868497c5a27e76df0ad14b22d7a5b2 Mon Sep 17 00:00:00 2001 From: aceberg <1502200+aceberg@users.noreply.github.com> Date: Mon, 18 Dec 2023 13:09:19 +0700 Subject: [PATCH] Embed public fix --- internal/web/templates/header.html | 2 +- internal/web/templates/index.html | 4 ++-- internal/web/webgui.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/web/templates/header.html b/internal/web/templates/header.html index 066def0..eefdb07 100644 --- a/internal/web/templates/header.html +++ b/internal/web/templates/header.html @@ -7,7 +7,7 @@ - + diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html index ea8a596..495ad13 100644 --- a/internal/web/templates/index.html +++ b/internal/web/templates/index.html @@ -1,7 +1,7 @@ {{ define "index.html" }} - - + +
diff --git a/internal/web/webgui.go b/internal/web/webgui.go index b0994a9..4082527 100644 --- a/internal/web/webgui.go +++ b/internal/web/webgui.go @@ -43,7 +43,7 @@ func Gui(dirPath, nodePath string) { templ := template.Must(template.New("").ParseFS(templFS, "templates/*")) router.SetHTMLTemplate(templ) - router.StaticFS("/public", http.FS(pubFS)) + router.StaticFS("/fs/", http.FS(pubFS)) router.GET("/", indexHandler) // index.go router.GET("/config/", configHandler) // config.go