From ba45dbf5e9699738eefdf5c3726b763c0cd57211 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sat, 5 Jan 2019 20:46:55 -0700 Subject: [PATCH] Serve at root --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d8a1e97..fd93c6b 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("/public/", http.FileServer(http.Dir("public")))) + http.Handle("/public/", http.StripPrefix("/", http.FileServer(http.Dir("public")))) log.Fatal(http.ListenAndServe(":8080", nil)) }() log.Println("started public fileserver on 8080")