From b97f1f37ec7b13c15863d9a5e22cbce18675d04b Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sat, 5 Jan 2019 20:58:40 -0700 Subject: [PATCH] server at root - fixed --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index fd93c6b..6ea7576 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,7 @@ func main() { stop := make(chan os.Signal, 1) signal.Notify(stop, os.Interrupt) go func() { - http.Handle("/public/", http.StripPrefix("/", http.FileServer(http.Dir("public")))) + http.Handle("/", http.FileServer(http.Dir("public"))) log.Fatal(http.ListenAndServe(":8080", nil)) }() log.Println("started public fileserver on 8080")