From 97f4effe721fceb397560aaf1623c43ddd384c07 Mon Sep 17 00:00:00 2001 From: raul Date: Fri, 24 May 2024 07:59:10 +0200 Subject: [PATCH] Embed CSS to binary --- cmd/serverFunc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/serverFunc.go b/cmd/serverFunc.go index 1a21a68..1909243 100644 --- a/cmd/serverFunc.go +++ b/cmd/serverFunc.go @@ -36,7 +36,9 @@ func server() { } r := gin.Default() LoadHTMLFromEmbedFS(r, templateFolder, "templates/*.html") - r.Static("/css", "./cmd/templates/css") + + //r.Static("/css", "./cmd/templates/css") + r.StaticFileFS("/css/style.css", "./templates/css/style.css", http.FS(templateFolder)) r.GET("/", returnIndex) r.GET("/cacert", returnCacert)