diff options
Diffstat (limited to 'system/api/server.go')
-rw-r--r-- | system/api/server.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/system/api/server.go b/system/api/server.go index f31a748..8e103c4 100644 --- a/system/api/server.go +++ b/system/api/server.go @@ -4,11 +4,9 @@ import "net/http" // Run adds Handlers to default http listener for API func Run() { - http.HandleFunc("/api/types", CORS(Record(typesHandler))) + http.HandleFunc("/api/contents", Record(CORS(Gzip(contentsHandler)))) - http.HandleFunc("/api/contents", CORS(Record(contentsHandler))) + http.HandleFunc("/api/content", Record(CORS(Gzip(contentHandler)))) - http.HandleFunc("/api/content", CORS(Record(contentHandler))) - - http.HandleFunc("/api/content/external", CORS(Record(externalContentHandler))) + http.HandleFunc("/api/content/external", Record(externalContentHandler)) } |