diff options
author | 2023-10-05 21:37:45 -0700 | |
---|---|---|
committer | 2023-10-05 22:19:08 -0700 | |
commit | 5774323f2ef646bea3e078a8bee382ea45a7e276 (patch) | |
tree | 1997e694d69ba8e071fa165d46535bbfde6694d2 /internal/api/api.go | |
parent | 1350f84ea45b2936e4d4f83953e058c3542be67f (diff) | |
download | v2-5774323f2ef646bea3e078a8bee382ea45a7e276.tar.gz v2-5774323f2ef646bea3e078a8bee382ea45a7e276.tar.zst v2-5774323f2ef646bea3e078a8bee382ea45a7e276.zip |
Add API endpoint to flush history
Diffstat (limited to 'internal/api/api.go')
-rw-r--r-- | internal/api/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/api.go b/internal/api/api.go index 1a53336c..2da998b5 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -66,4 +66,5 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) { sr.HandleFunc("/entries/{entryID}/bookmark", handler.toggleBookmark).Methods(http.MethodPut) 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) } |