From e0bb30b97657737394f1b541a54203ea99604e11 Mon Sep 17 00:00:00 2001 From: maddalax Date: Thu, 21 Nov 2024 07:51:49 -0600 Subject: [PATCH] remove assets dir --- examples/minimal-htmgo/main.go | 2 +- examples/minimal-htmgo/{assets => }/public/htmgo.js | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename examples/minimal-htmgo/{assets => }/public/htmgo.js (100%) diff --git a/examples/minimal-htmgo/main.go b/examples/minimal-htmgo/main.go index ff705d2..4e275d3 100644 --- a/examples/minimal-htmgo/main.go +++ b/examples/minimal-htmgo/main.go @@ -8,7 +8,7 @@ import ( func main() { router := chi.NewRouter() - fileServer := http.StripPrefix("/public", http.FileServer(http.Dir("./assets/public"))) + fileServer := http.StripPrefix("/public", http.FileServer(http.Dir("./public"))) router.Handle("/public/*", fileServer) router.Get("/", func(writer http.ResponseWriter, request *http.Request) { diff --git a/examples/minimal-htmgo/assets/public/htmgo.js b/examples/minimal-htmgo/public/htmgo.js similarity index 100% rename from examples/minimal-htmgo/assets/public/htmgo.js rename to examples/minimal-htmgo/public/htmgo.js