diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-15 19:42:14 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-15 19:42:14 -0800 |
commit | dd3bd260d907bcb42b3a85a5972e387c4c8f805b (patch) | |
tree | dfacf115de71611a70b12b4fd658a3972f5470f1 /system/admin/server.go | |
parent | dfb1d373e6c61da8a28f919f34517350b6b79ef2 (diff) |
testing func line unsplit
Diffstat (limited to 'system/admin/server.go')
-rw-r--r-- | system/admin/server.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/system/admin/server.go b/system/admin/server.go index 8b759e4..25ff52c 100644 --- a/system/admin/server.go +++ b/system/admin/server.go @@ -52,9 +52,7 @@ func Run() { // even if the API server is not running. Otherwise, images/files uploaded // through the editor will not load within the admin system. uploadsDir := filepath.Join(pwd, "uploads") - http.Handle("/api/uploads/", api.Record(api.CORS(db.CacheControl( - http.StripPrefix("/api/uploads/", http.FileServer( - restrict(http.Dir(uploadsDir)))))))) + http.Handle("/api/uploads/", api.Record(api.CORS(db.CacheControl(http.StripPrefix("/api/uploads/", http.FileServer(restrict(http.Dir(uploadsDir)))))))) fmt.Println("Admin routes registered.") } |