summaryrefslogtreecommitdiff
path: root/system/api/handlers.go
diff options
context:
space:
mode:
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