summaryrefslogtreecommitdiff
path: root/system/admin/server.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-09 23:56:20 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-09 23:56:20 -0700
commitf04b1f75f8e18bac2df5ad48c69055bac929e479 (patch)
tree80d8fb0c6a9959ed1e5cf3afdfe0ccb6abb264df /system/admin/server.go
parenta708ca953c4496fd45beb468d77c4a54df360831 (diff)
adding static file server, new implementation
Diffstat (limited to 'system/admin/server.go')
-rw-r--r--system/admin/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/server.go b/system/admin/server.go
index 616a87d..d9637b1 100644
--- a/system/admin/server.go
+++ b/system/admin/server.go
@@ -34,7 +34,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)))))
+ http.Handle("/admin/static/", CacheControl(http.FileServer(http.Dir(staticDir))))
fmt.Println(staticDir)
// API path needs to be registered within server package so that it is handled