From 54e439496e432414396fdc071d0e04ae2539d709 Mon Sep 17 00:00:00 2001 From: Hamza <72913359+Hamza12700@users.noreply.github.com> Date: Mon, 16 Sep 2024 05:22:36 +0000 Subject: [PATCH] change: moved stat template file to templs directory --- handlers/stats.go | 2 +- {static => templs}/stat.html | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename {static => templs}/stat.html (100%) diff --git a/handlers/stats.go b/handlers/stats.go index fd8f440..52ca897 100644 --- a/handlers/stats.go +++ b/handlers/stats.go @@ -31,7 +31,7 @@ func Stats(w http.ResponseWriter, r *http.Request) { return } - templ := template.Must(template.ParseFiles("./static/stat.html")) + templ := template.Must(template.ParseFiles("./templs/stat.html")) db := database.ConnectDB() defer db.Close() diff --git a/static/stat.html b/templs/stat.html similarity index 100% rename from static/stat.html rename to templs/stat.html