From 22c4609e303301f991a2e95f01853a56beb564bb Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 23 Sep 2012 13:27:37 +0200 Subject: Fix static handler path for previewing. --- src/ninjacloud.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ninjacloud.go b/src/ninjacloud.go index 5632709..a600ee7 100644 --- a/src/ninjacloud.go +++ b/src/ninjacloud.go @@ -696,7 +696,7 @@ func main() { http.HandleFunc(dirPath, dirHandler) http.HandleFunc(webPath, getDataHandler) http.HandleFunc(statusPath, getStatusHandler) - http.Handle("/", http.FileServer(http.Dir(root))) + http.Handle("/", http.FileServer(http.Dir("."))) err = http.ListenAndServe(interfaceFlag+":"+portFlag, nil) if err != nil { -- cgit v1.2.3