aboutsummaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
authorGravatar Jean Khawand <22157081+jeankhawand@users.noreply.github.com> 2023-07-28 22:56:59 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-28 13:56:59 -0700
commitde8ceb21ea9163f4b66af1061998af3b341a96ae (patch)
tree9bee1a5dce8abda01110030a4f4e699d583b3795 /api/api.go
parent3bac768cda0d92f81aa3690f1d92cffbaae246aa (diff)
downloadv2-de8ceb21ea9163f4b66af1061998af3b341a96ae.tar.gz
v2-de8ceb21ea9163f4b66af1061998af3b341a96ae.tar.zst
v2-de8ceb21ea9163f4b66af1061998af3b341a96ae.zip
Add new API endpoint: `/entries/{entryID}/save`
Diffstat (limited to 'api/api.go')
-rw-r--r--api/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/api.go b/api/api.go
index 03e6c1fb..890dec0f 100644
--- a/api/api.go
+++ b/api/api.go
@@ -64,5 +64,6 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) {
sr.HandleFunc("/entries", handler.setEntryStatus).Methods(http.MethodPut)
sr.HandleFunc("/entries/{entryID}", handler.getEntry).Methods(http.MethodGet)
sr.HandleFunc("/entries/{entryID}/bookmark", handler.toggleBookmark).Methods(http.MethodPut)
+ sr.HandleFunc("/entries/{entryID}/save", handler.saveEntry).Methods(http.MethodPut)
sr.HandleFunc("/entries/{entryID}/fetch-content", handler.fetchContent).Methods(http.MethodGet)
}