summaryrefslogtreecommitdiff
path: root/system/api/server.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-25 13:23:37 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-25 13:23:37 -0700
commit099d000119447708d7d0d0482758d352438fa7e5 (patch)
treef4386ae2ff25a5b6b15c2e6442d4c56705e8271e /system/api/server.go
parent7092fb8979869f3c09b364d454d8d8081bb7c0bc (diff)
adding support for file upload type and API handler to fetch file info
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))))
}