diff options
author | 2022-12-11 18:07:01 +0100 | |
---|---|---|
committer | 2022-12-12 19:41:30 -0800 | |
commit | ce35b46fee3c891e959d4e5376c26636e5eb90fc (patch) | |
tree | 3fe5bd9fef8884bee51771ca631473ab85c0ec01 /api/api.go | |
parent | e12c263fc9a662bdd8096534c84a006515288ce7 (diff) | |
download | v2-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.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |