diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-11-11 11:28:29 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-11-11 11:29:12 -0800 |
commit | 5a69a61d4841a35d7ddcb761a688db8c688314d6 (patch) | |
tree | b807ee1da5b0705e7649f70742d8198f351c1224 /ui/history_flush.go | |
parent | 0925899cee9362cf09e982487bd480e2b09041f4 (diff) |
Move UI middlewares and routes to ui package
Diffstat (limited to 'ui/history_flush.go')
-rw-r--r-- | ui/history_flush.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/history_flush.go b/ui/history_flush.go index 6c6907b..d0b8f62 100644 --- a/ui/history_flush.go +++ b/ui/history_flush.go @@ -12,13 +12,12 @@ import ( "miniflux.app/http/route" ) -// FlushHistory changes all "read" items to "removed". -func (c *Controller) FlushHistory(w http.ResponseWriter, r *http.Request) { - err := c.store.FlushHistory(request.UserID(r)) +func (h *handler) flushHistory(w http.ResponseWriter, r *http.Request) { + err := h.store.FlushHistory(request.UserID(r)) if err != nil { html.ServerError(w, r, err) return } - html.Redirect(w, r, route.Path(c.router, "history")) + html.Redirect(w, r, route.Path(h.router, "history")) } |