From d195ca91b26d83480882b73c063f9bda14117120 Mon Sep 17 00:00:00 2001 From: Dmytro Sokil Date: Sun, 28 Mar 2021 23:34:33 +0300 Subject: [PATCH] fix refresh page] --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 5b39166..43b0d8c 100644 --- a/main.go +++ b/main.go @@ -198,8 +198,7 @@ func main() { ) // frontend routes handler - router.HandleFunc( - "/", + router.PathPrefix("/").HandlerFunc( func(w http.ResponseWriter, r *http.Request) { var indexBody, _ = ui.Asset("index.html") w.Write(indexBody)