app
This commit is contained in:
parent
bd01d9751c
commit
4988c740a5
2 changed files with 4 additions and 0 deletions
4
main.go
4
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)
|
||||
|
|
Loading…
Reference in a new issue