summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/admin/server.go4
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.")
}