summaryrefslogtreecommitdiff
path: root/system/api/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-02-13 09:44:32 -0800
committerSteve Manuel <nilslice@gmail.com>2017-02-13 09:44:32 -0800
commitd2240b2ea40a3073e12c4c4ab529d486fa2b99d9 (patch)
tree64aa401aa47bff06279e4bc79569f048c1c8cd24 /system/api/handlers.go
parentf47826071f1e6d7b048d1304d8435a347f9b412a (diff)
updating omit implementation
Diffstat (limited to 'system/api/handlers.go')
-rw-r--r--system/api/handlers.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go
index 2c234ed..4a9eaff 100644
--- a/system/api/handlers.go
+++ b/system/api/handlers.go
@@ -90,7 +90,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
return
}
- j, err = omit(it(), res, req, &j)
+ j, err = omit(it(), j)
if err != nil {
res.WriteHeader(http.StatusInternalServerError)
return
@@ -139,7 +139,7 @@ func contentHandler(res http.ResponseWriter, req *http.Request) {
return
}
- j, err = omit(pt(), res, req, &j)
+ j, err = omit(pt(), j)
if err != nil {
res.WriteHeader(http.StatusInternalServerError)
return
@@ -182,7 +182,7 @@ func contentHandlerBySlug(res http.ResponseWriter, req *http.Request) {
return
}
- j, err = omit(it(), res, req, &j)
+ j, err = omit(it(), j)
if err != nil {
res.WriteHeader(http.StatusInternalServerError)
return