diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-16 12:46:34 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-16 12:46:34 -0800 |
commit | b67aa10ca519107ae43520aa46b45601549a7332 (patch) | |
tree | 470a41fac21f9d08d2329b15728ddf22364009a7 /system/api/server.go | |
parent | 957926591fd8fc2adacf04f410e5127dec259c85 (diff) |
minor optimization in db Updates, added gzip responses for API requests, added better CORS control
Diffstat (limited to 'system/api/server.go')
-rw-r--r-- | system/api/server.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/system/api/server.go b/system/api/server.go index 4b8b22e..0bdc48a 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", Record(CORS(typesHandler))) - http.HandleFunc("/api/contents", Record(CORS(contentsHandler))) http.HandleFunc("/api/content", Record(CORS(contentHandler))) - http.HandleFunc("/api/content/external", Record(CORS(externalContentHandler))) + http.HandleFunc("/api/content/external", Record(externalContentHandler)) } |