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

View File

@@ -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 == "" {

1
static/index.html Normal file
View File

@@ -0,0 +1 @@
foo