From e4285c2cba21370b05bd97a5af1b877dbc884a23 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 6 Oct 2023 22:42:59 -0700 Subject: Add API endpoint to update entry title and content --- 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 e00e8272..d6a36376 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -63,6 +63,7 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) { sr.HandleFunc("/entries", handler.getEntries).Methods(http.MethodGet) sr.HandleFunc("/entries", handler.setEntryStatus).Methods(http.MethodPut) sr.HandleFunc("/entries/{entryID}", handler.getEntry).Methods(http.MethodGet) + sr.HandleFunc("/entries/{entryID}", handler.updateEntry).Methods(http.MethodPut) 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) -- cgit v1.2.3