diff options
author | 2018-11-11 11:28:29 -0800 | |
---|---|---|
committer | 2018-11-11 11:29:12 -0800 | |
commit | 5a69a61d4841a35d7ddcb761a688db8c688314d6 (patch) | |
tree | b807ee1da5b0705e7649f70742d8198f351c1224 /ui/feed_icon.go | |
parent | 0925899cee9362cf09e982487bd480e2b09041f4 (diff) | |
download | v2-5a69a61d4841a35d7ddcb761a688db8c688314d6.tar.gz v2-5a69a61d4841a35d7ddcb761a688db8c688314d6.tar.zst v2-5a69a61d4841a35d7ddcb761a688db8c688314d6.zip |
Move UI middlewares and routes to ui package
Diffstat (limited to 'ui/feed_icon.go')
-rw-r--r-- | ui/feed_icon.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/feed_icon.go b/ui/feed_icon.go index 63aa050f..4b5f30f7 100644 --- a/ui/feed_icon.go +++ b/ui/feed_icon.go @@ -13,10 +13,9 @@ import ( "miniflux.app/http/response/html" ) -// ShowIcon shows the feed icon. -func (c *Controller) ShowIcon(w http.ResponseWriter, r *http.Request) { +func (h *handler) showIcon(w http.ResponseWriter, r *http.Request) { iconID := request.RouteInt64Param(r, "iconID") - icon, err := c.store.IconByID(iconID) + icon, err := h.store.IconByID(iconID) if err != nil { html.ServerError(w, r, err) return |