aboutsummaryrefslogtreecommitdiff
path: root/internal/api/api.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2023-10-05 22:23:29 -0700
committerGravatar Frédéric Guillot <f@miniflux.net> 2023-10-06 13:52:33 -0700
commit2002d60fbe0cbc0b74bfcc29305d018db1564d3c (patch)
treee51d3b24697dadc2fb96e45556ba9b5666a16d35 /internal/api/api.go
parent5774323f2ef646bea3e078a8bee382ea45a7e276 (diff)
downloadv2-2002d60fbe0cbc0b74bfcc29305d018db1564d3c.tar.gz
v2-2002d60fbe0cbc0b74bfcc29305d018db1564d3c.tar.zst
v2-2002d60fbe0cbc0b74bfcc29305d018db1564d3c.zip
Add new API endpoint /icons/{iconID}
Diffstat (limited to '')
-rw-r--r--internal/api/api.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/api/api.go b/internal/api/api.go
index 2da998b5..e00e8272 100644
--- a/internal/api/api.go
+++ b/internal/api/api.go
@@ -54,7 +54,7 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) {
sr.HandleFunc("/feeds/{feedID}", handler.getFeed).Methods(http.MethodGet)
sr.HandleFunc("/feeds/{feedID}", handler.updateFeed).Methods(http.MethodPut)
sr.HandleFunc("/feeds/{feedID}", handler.removeFeed).Methods(http.MethodDelete)
- sr.HandleFunc("/feeds/{feedID}/icon", handler.feedIcon).Methods(http.MethodGet)
+ sr.HandleFunc("/feeds/{feedID}/icon", handler.getIconByFeedID).Methods(http.MethodGet)
sr.HandleFunc("/feeds/{feedID}/mark-all-as-read", handler.markFeedAsRead).Methods(http.MethodPut)
sr.HandleFunc("/export", handler.exportFeeds).Methods(http.MethodGet)
sr.HandleFunc("/import", handler.importFeeds).Methods(http.MethodPost)
@@ -67,4 +67,5 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) {
sr.HandleFunc("/entries/{entryID}/save", handler.saveEntry).Methods(http.MethodPost)
sr.HandleFunc("/entries/{entryID}/fetch-content", handler.fetchContent).Methods(http.MethodGet)
sr.HandleFunc("/flush-history", handler.flushHistory).Methods(http.MethodPut, http.MethodDelete)
+ sr.HandleFunc("/icons/{iconID}", handler.getIconByIconID).Methods(http.MethodGet)
}