diff options
author | 2023-07-28 22:56:59 +0200 | |
---|---|---|
committer | 2023-07-28 13:56:59 -0700 | |
commit | de8ceb21ea9163f4b66af1061998af3b341a96ae (patch) | |
tree | 9bee1a5dce8abda01110030a4f4e699d583b3795 /api/api.go | |
parent | 3bac768cda0d92f81aa3690f1d92cffbaae246aa (diff) | |
download | v2-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.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) } |