From 4988c740a5eb9ae543edafdcd9797ac5825f9ee2 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Sat, 18 Nov 2023 16:31:38 +0100 Subject: [PATCH] app --- label.html => index.html | 0 main.go | 4 ++++ 2 files changed, 4 insertions(+) rename label.html => index.html (100%) diff --git a/label.html b/index.html similarity index 100% rename from label.html rename to index.html diff --git a/main.go b/main.go index af509f6..05bfcfb 100644 --- a/main.go +++ b/main.go @@ -76,6 +76,10 @@ func main() { createDnhLabelHandler(w, r, ep) }) + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + http.ServeFile(w, r, "index.html") + }) + fmt.Println("Server starting on port 8080") if err := http.ListenAndServe(":8080", nil); err != nil { panic(err)