summaryrefslogtreecommitdiff
path: root/system/api/server.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-05-01 01:51:46 -0500
committerGitHub <noreply@github.com>2017-05-01 01:51:46 -0500
commit8319420935c223e432bc4c386bd7d26b03f01b47 (patch)
tree8ebe1e3f0780f66530b723ce9b48f69ae664d764 /system/api/server.go
parent7092fb8979869f3c09b364d454d8d8081bb7c0bc (diff)
parent8a1d091a0c6d55dbd6c713b2240bee8550541e7b (diff)
Merge pull request #137 from ponzu-cms/ponzu-dev
[core] adding file upload metadata type and API
Diffstat (limited to 'system/api/server.go')
-rw-r--r--system/api/server.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/api/server.go b/system/api/server.go
index a7bd056..b51936c 100644
--- a/system/api/server.go
+++ b/system/api/server.go
@@ -17,5 +17,7 @@ func Run() {
http.HandleFunc("/api/content/delete", Record(CORS(deleteContentHandler)))
- http.HandleFunc("/api/search", Record(CORS(searchContentHandler)))
+ http.HandleFunc("/api/search", Record(CORS(Gzip(searchContentHandler))))
+
+ http.HandleFunc("/api/uploads", Record(CORS(Gzip(uploadsHandler))))
}