From acd6728c195b37ac5b7b168a29d7bff2613ec2cc Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sat, 24 Feb 2024 09:09:05 -0700 Subject: [PATCH] Removed public directory as all front end assets are embedded in the HTML directly --- public/README.md | 3 --- webServer.go | 3 --- 2 files changed, 6 deletions(-) delete mode 100644 public/README.md diff --git a/public/README.md b/public/README.md deleted file mode 100644 index e36f855..0000000 --- a/public/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Public - -This directory is publicly accessible from the HTTP server and contains web assets such as images, css and javascript. \ No newline at end of file diff --git a/webServer.go b/webServer.go index 6ccfa9b..e73e14a 100644 --- a/webServer.go +++ b/webServer.go @@ -7,9 +7,6 @@ import ( func webServer() { - //Public static files - http.Handle("/public/", http.StripPrefix("/public/", http.FileServer(http.Dir("public")))) - // Page Handlers // Anything that is responsible for the base elements of a viewable web page http.HandleFunc("/", homePageHandler)