This commit is contained in:
Matthew Frost 2023-11-18 16:31:38 +01:00
parent bd01d9751c
commit 4988c740a5
2 changed files with 4 additions and 0 deletions

View file

@ -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)