diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-07-19 19:27:05 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-07-19 19:27:05 -0700 |
commit | 9f6533ece90c6b528dd0af6f1b6dec4a7fa2fa3b (patch) | |
tree | 59349657a1d5a700abab38332d4e7240533ab4d3 /api/entry.go | |
parent | a291d8a38b40569fdd1f00125ca0b29e4b9264f2 (diff) |
Compress JSON, CSS and Javascript responses
Diffstat (limited to 'api/entry.go')
-rw-r--r-- | api/entry.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api/entry.go b/api/entry.go index a6785fb..b2a4d9d 100644 --- a/api/entry.go +++ b/api/entry.go @@ -48,7 +48,7 @@ func (c *Controller) GetFeedEntry(w http.ResponseWriter, r *http.Request) { return } - json.OK(w, entry) + json.OK(w, r, entry) } // GetEntry is the API handler to get a single entry. @@ -73,7 +73,7 @@ func (c *Controller) GetEntry(w http.ResponseWriter, r *http.Request) { return } - json.OK(w, entry) + json.OK(w, r, entry) } // GetFeedEntries is the API handler to get all feed entries. @@ -132,7 +132,7 @@ func (c *Controller) GetFeedEntries(w http.ResponseWriter, r *http.Request) { return } - json.OK(w, &entriesResponse{Total: count, Entries: entries}) + json.OK(w, r, &entriesResponse{Total: count, Entries: entries}) } // GetEntries is the API handler to fetch entries. @@ -184,7 +184,7 @@ func (c *Controller) GetEntries(w http.ResponseWriter, r *http.Request) { return } - json.OK(w, &entriesResponse{Total: count, Entries: entries}) + json.OK(w, r, &entriesResponse{Total: count, Entries: entries}) } // SetEntryStatus is the API handler to change the status of entries. |