summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2012-09-22 19:05:51 +0200
committerPacien2015-12-07 22:48:26 +0100
commit4d8cf47b88b36d3bbc4299c996ce9cf77bedea48 (patch)
treedc111ba8d780f125e4364a2a3ca079818e868a8b /src
parentc2a5444b9eda51d6dc6a6c001cdbd540743734d6 (diff)
downloadninja-go-local-cloud-4d8cf47b88b36d3bbc4299c996ce9cf77bedea48.tar.gz
Add a static file Handler to the root for previewing.
Diffstat (limited to 'src')
-rw-r--r--src/ninjacloud.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ninjacloud.go b/src/ninjacloud.go
index 5f9274e..5c6b417 100644
--- a/src/ninjacloud.go
+++ b/src/ninjacloud.go
@@ -681,6 +681,7 @@ func main() {
681 http.HandleFunc(dirPath, dirHandler) 681 http.HandleFunc(dirPath, dirHandler)
682 http.HandleFunc(webPath, getDataHandler) 682 http.HandleFunc(webPath, getDataHandler)
683 http.HandleFunc(statusPath, getStatusHandler) 683 http.HandleFunc(statusPath, getStatusHandler)
684 http.Handle("/", http.FileServer(http.Dir(projectsDir)))
684 685
685 err = http.ListenAndServe(interfaceFlag+":"+portFlag, nil) 686 err = http.ListenAndServe(interfaceFlag+":"+portFlag, nil)
686 if err != nil { 687 if err != nil {