summaryrefslogtreecommitdiff
path: root/internal/ui/ui.go
diff options
context:
space:
mode:
authorGravatar Romain de Laage <romain.delaage@rdelaage.ovh> 2024-04-05 12:09:29 +0200
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-04-14 20:08:38 -0700
commit647c66e70af50cf7ca786eba51d4fdb67b89fecc (patch)
tree0b83098620a1be897f8f2081da82c575ee71e1d8 /internal/ui/ui.go
parentb205b5aad075dc89040231f87c79bec2a7ea60c7 (diff)
downloadv2-647c66e70af50cf7ca786eba51d4fdb67b89fecc.tar.gz
v2-647c66e70af50cf7ca786eba51d4fdb67b89fecc.tar.zst
v2-647c66e70af50cf7ca786eba51d4fdb67b89fecc.zip
ui: add tag entries page
Diffstat (limited to '')
-rw-r--r--internal/ui/ui.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/ui/ui.go b/internal/ui/ui.go
index 6d8e729c..d6641c01 100644
--- a/internal/ui/ui.go
+++ b/internal/ui/ui.go
@@ -93,6 +93,10 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) {
uiRouter.HandleFunc("/category/{categoryID}/remove", handler.removeCategory).Name("removeCategory").Methods(http.MethodPost)
uiRouter.HandleFunc("/category/{categoryID}/mark-all-as-read", handler.markCategoryAsRead).Name("markCategoryAsRead").Methods(http.MethodPost)
+ // Tag pages.
+ uiRouter.HandleFunc("/tags/{tagName}/entries/all", handler.showTagEntriesAllPage).Name("tagEntriesAll").Methods(http.MethodGet)
+ uiRouter.HandleFunc("/tags/{tagName}/entry/{entryID}", handler.showTagEntryPage).Name("tagEntry").Methods(http.MethodGet)
+
// Entry pages.
uiRouter.HandleFunc("/entry/status", handler.updateEntriesStatus).Name("updateEntriesStatus").Methods(http.MethodPost)
uiRouter.HandleFunc("/entry/save/{entryID}", handler.saveEntry).Name("saveEntry").Methods(http.MethodPost)