From 9e43e5c39ed5fdad0f1ce62a6f7449075a48e16a Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 21 Nov 2024 18:52:32 -0800 Subject: [PATCH] Fixes --- main.go | 4 +--- static/index.html | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 static/index.html diff --git a/main.go b/main.go index 81764a3..33df984 100644 --- a/main.go +++ b/main.go @@ -4,8 +4,6 @@ import ( "fmt" "net/http" "os" - "strconv" - "strings" ) func main() { @@ -13,7 +11,7 @@ func main() { fmt.Fprintf(w, "Hello! you've requested %s\n", r.URL.Path) }) - http.Handle("/", http.FileServer(http.Dir("./static"))) + http.Handle("/static", http.FileServer(http.Dir("./static"))) port := os.Getenv("PORT") if port == "" { diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/static/index.html @@ -0,0 +1 @@ +foo