From a708ca953c4496fd45beb468d77c4a54df360831 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sun, 9 Oct 2016 23:53:30 -0700 Subject: adding static file server, new implementation --- system/admin/server.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system/admin/server.go') diff --git a/system/admin/server.go b/system/admin/server.go index d5fd894..616a87d 100644 --- a/system/admin/server.go +++ b/system/admin/server.go @@ -1,6 +1,7 @@ package admin import ( + "fmt" "log" "net/http" "os" @@ -34,6 +35,7 @@ func Run() { staticDir := filepath.Join(pwd, "cmd", "ponzu", "vendor", "github.com", "bosssauce", "ponzu", "system") http.Handle("/admin/static/", CacheControl(http.StripPrefix("/admin/", http.FileServer(http.Dir(staticDir))))) + fmt.Println(staticDir) // API path needs to be registered within server package so that it is handled // even if the API server is not running. Otherwise, images/files uploaded -- cgit v1.2.3