This commit is contained in:
Ian Gulliver
2024-11-21 18:52:32 -08:00
parent 57c407dd62
commit 9e43e5c39e
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -4,8 +4,6 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"os" "os"
"strconv"
"strings"
) )
func main() { func main() {
@@ -13,7 +11,7 @@ func main() {
fmt.Fprintf(w, "Hello! you've requested %s\n", r.URL.Path) 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") port := os.Getenv("PORT")
if port == "" { if port == "" {
+1
View File
@@ -0,0 +1 @@
foo