aboutsummaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
authorGravatar Davide Masserut <dm@mssdvd.com> 2022-12-11 18:07:01 +0100
committerGravatar Frédéric Guillot <f@miniflux.net> 2022-12-12 19:41:30 -0800
commitce35b46fee3c891e959d4e5376c26636e5eb90fc (patch)
tree3fe5bd9fef8884bee51771ca631473ab85c0ec01 /api/api.go
parente12c263fc9a662bdd8096534c84a006515288ce7 (diff)
downloadv2-ce35b46fee3c891e959d4e5376c26636e5eb90fc.tar.gz
v2-ce35b46fee3c891e959d4e5376c26636e5eb90fc.tar.zst
v2-ce35b46fee3c891e959d4e5376c26636e5eb90fc.zip
Add category feeds refresh
Diffstat (limited to 'api/api.go')
-rw-r--r--api/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/api.go b/api/api.go
index ceab2697..ff2126d2 100644
--- a/api/api.go
+++ b/api/api.go
@@ -43,6 +43,7 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) {
sr.HandleFunc("/categories/{categoryID}", handler.removeCategory).Methods(http.MethodDelete)
sr.HandleFunc("/categories/{categoryID}/mark-all-as-read", handler.markCategoryAsRead).Methods(http.MethodPut)
sr.HandleFunc("/categories/{categoryID}/feeds", handler.getCategoryFeeds).Methods(http.MethodGet)
+ sr.HandleFunc("/categories/{categoryID}/refresh", handler.refreshCategory).Methods(http.MethodPut)
sr.HandleFunc("/categories/{categoryID}/entries", handler.getCategoryEntries).Methods(http.MethodGet)
sr.HandleFunc("/categories/{categoryID}/entries/{entryID}", handler.getCategoryEntry).Methods(http.MethodGet)
sr.HandleFunc("/discover", handler.discoverSubscriptions).Methods(http.MethodPost)