From 5774323f2ef646bea3e078a8bee382ea45a7e276 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 5 Oct 2023 21:37:45 -0700 Subject: Add API endpoint to flush history --- internal/api/api.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/api/api.go') 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) } -- cgit v1.2.3