diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-09 23:53:30 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-09 23:53:30 -0700 |
commit | a708ca953c4496fd45beb468d77c4a54df360831 (patch) | |
tree | 1c9138e16d0a6e4d24e31c0135b31c7ebcb06505 /system/admin/server.go | |
parent | 8ada2f203837d106932ba12fd2d7ca0af6e580e5 (diff) |
adding static file server, new implementation
Diffstat (limited to 'system/admin/server.go')
-rw-r--r-- | system/admin/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |